AR + GPS Location
3.0.0
|
Public Member Functions | |
LinearSpline (Vector3[] points) | |
override void | CalculateSegments (int n) |
Calculate the catmull-rom segments. Also estimates the curve's length. More... | |
![]() | |
Vector3 | GetPointAtArcLength (float s) |
Returns the point of the spline at a given arc-length. More... | |
CurvePointData | GetPointAndTangentAtArcLength (float s) |
Returns a CurvePointData whith the point and tangent of the spline at a given arc-length. More... | |
void | DrawCurveWithLineRenderer (LineRenderer renderer, System.Func< Vector3, Vector3 > func, int n=100) |
Draws the curve using a given LineRenderer, with points being processed by a given function beforehand. More... | |
Vector3[] | SamplePoints (int n, System.Func< Vector3, Vector3 > func) |
Calculates a sample of (N+2) equidistant points along the spline. More... | |
Vector3[] | SamplePoints (int n) |
Calculates a sample of (N+2) equidistant points along the spline. More... | |
void | DrawGizmos () |
Draw the curve and sample point using Gizmos. More... | |
Additional Inherited Members | |
![]() | |
Curve[] | segments |
The CatmullRom curve-segments of the spline. More... | |
int | segmentCount = 0 |
The number of segments that make up the spline. More... | |
float[] | lengths |
![]() | |
Vector3[] | Points [get, protected set] |
The points interpolated of the spline. More... | |
float | Length [get, protected set] |
The full (estimated) length of the spline. More... | |
Definition at line 5 of file LinearSpline.cs.
|
virtual |
Calculate the catmull-rom segments. Also estimates the curve's length.
n | The number sample points used to estimate each segment's length. |
Implements ARLocation.Spline.
Definition at line 14 of file LinearSpline.cs.