Function calcKnotSequence

  • This function will calculate the knot sequence, based on a given value for alpha, for a set of control points for a curve segment. It is used to calculate the velocity vectors, which determines the curvature of the segment. Alpha=0.5 produces a centripetal curve, while alpha=1 produces a chordal curve.

    Returns

    calculated knot sequence to use for curve velocity vector calculations

    Parameters

    • p0: Vector

      First control point

    • p1: Vector

      Second control point

    • p2: Vector

      Third control point

    • p3: Vector

      Fourth control point

    • alpha: number = 0

      alpha value

    Returns NumArray4

Generated using TypeDoc