Function getSegmentIndexAndT

  • Find the spline segment index and the corresponding segment weight/fraction at the provided curve time (ct)

    Returns

    segment index and time

    Parameters

    • ct: number

      non-uniform time along curve (0 - 1)

    • points: Vector[]

      set of coordinates/control points making out the curve

    • closed: boolean = false

    Returns {
        index: number;
        weight: number;
    }

    • index: number
    • weight: number

Generated using TypeDoc