16 private Vector3 startHandle;
21 private Vector3 endHandle;
50 Points = (Vector3[])points.Clone();
76 i == 0 ? startHandle :
Points[i - 1],
int segmentCount
The number of segments that make up the spline.
CatmullRomSpline(Vector3[] points, int n, float alpha)
Creates a new Catmull-rom spline.
Curve[] segments
The CatmullRom curve-segments of the spline.
float Length
The full (estimated) length of the spline.
float Alpha
The alpha/tension parameter of the spline.
A (open-ended) catmull-rom spline, which interpolates a set points by joining catmull-rom curves toge...
Vector3[] Points
The points interpolated of the spline.
sealed override void CalculateSegments(int n)
Calculate the catmull-rom segments. Also estimates the curve's length.