A NURBS curve implementation that can be used by other curve classes

Constructors

Methods

  • Get the valid parameter range for this curve

    Returns { end: number; start: number }

  • Get points along the curve

    Parameters

    • divisions: number

      Number of divisions to create

    Returns number[][]

    Array of points along the curve

  • Check if the curve is closed by comparing start and end points

    Parameters

    • tolerance: number = 1e-6

    Returns boolean

  • Calculate a point on the curve at parameter u

    Parameters

    • u: number

    Returns number[]