Skip to main content

NurbsPath2D

class NurbsPath2D

It is a mathematical model used to generate and represent paths and surfaces.


public class NurbsPath2D

— Constructors (4) —

ConstructorDescription
NurbsPath2D()Creates a new instance of NurbsPath2D.
NurbsPath2D(List\<Vector2> points)Creates a new instance of NurbsPath2D with the list of points defined to be the argument.
NurbsPath2D(boolean continuous)Creates a new instance of NurbsPath2D whether continuous or not defined to be the argument.
NurbsPath2D(List\<Vector2> points, boolean continuous)Creates a new instance of NurbsPath2D with the list of points, and whether continuous or not defined to be the arguments.

— Methods (12) —

NameDescription
Vector2 evaluate(float x)Currently evaluates NurbsPath2D.
Vector2 evaluate(float x, Vector2 out)Evaluates the NurbsPath2D at the moment and applies to the vector to be the argument.
List\<Vector2> evaluatePath(int resolution, List\<Vector2> list)Currently evaluates NurbsPath2D.
List\<Vector2> evaluatePath(int resolution)Currently evalates NurbsPath2D.
void addPoint(Vector2 vector)Adds a point to NurbsPath2D.
void addPath(List\<Vector2> path)Adds a path to NurbsPath2D.
Vector2 getPoint(int i)Returns a NurbsPath2D point.
void removePoint(Vector2 vector2)Removes a point of the NurbsPath2D.
void removePoint(int i)Removes a point of the NurbsPath2D.
int pointsCount()Returns the current value of NurbsPath2D points.
boolean isContinuous()Returns true if NurbsPath2D is continuous, returns false if not.
void setContinuous(boolean continuous)Defines whether or not NurbsPath2D will be continuous.