Function getSegmentIndexAndT
- getSegmentIndexAndT(ct: number, points: Vector[], closed?: boolean): {
index: number;
weight: number;
}
-
Parameters
-
ct: number
-
-
closed: boolean = false
Returns {
index: number;
weight: number;
}
-
index: number
-
weight: number
Find the spline segment index and the corresponding segment weight/fraction at the provided curve time (ct)
Returns
segment index and time