|
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 12 of file Spline.cs.
◆ CalculateSegments()
abstract void ARLocation.Spline.CalculateSegments |
( |
int |
n | ) |
|
|
pure virtual |
◆ DrawCurveWithLineRenderer()
void ARLocation.Spline.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.
- Parameters
-
Definition at line 91 of file Spline.cs.
◆ DrawGizmos()
void ARLocation.Spline.DrawGizmos |
( |
| ) |
|
Draw the curve and sample point using Gizmos.
Definition at line 142 of file Spline.cs.
◆ GetPointAndTangentAtArcLength()
CurvePointData ARLocation.Spline.GetPointAndTangentAtArcLength |
( |
float |
s | ) |
|
Returns a CurvePointData whith the point and tangent of the spline at a given arc-length.
- Parameters
-
- Returns
Definition at line 69 of file Spline.cs.
◆ GetPointAtArcLength()
Vector3 ARLocation.Spline.GetPointAtArcLength |
( |
float |
s | ) |
|
Returns the point of the spline at a given arc-length.
- Parameters
-
- Returns
Definition at line 48 of file Spline.cs.
◆ SamplePoints() [1/2]
Vector3 [] ARLocation.Spline.SamplePoints |
( |
int |
n | ) |
|
Calculates a sample of (N+2) equidistant points along the spline.
- Parameters
-
n | The number of points in the sample will be (N+2). |
- Returns
Definition at line 134 of file Spline.cs.
◆ SamplePoints() [2/2]
Vector3 [] ARLocation.Spline.SamplePoints |
( |
int |
n, |
|
|
System.Func< Vector3, Vector3 > |
func |
|
) |
| |
Calculates a sample of (N+2) equidistant points along the spline.
- Parameters
-
n | The number of points in the sample will be (N+2). |
func | A function that can be used to transform the sampled poins. |
- Returns
Definition at line 114 of file Spline.cs.
◆ segmentCount
int ARLocation.Spline.segmentCount = 0 |
|
protected |
The number of segments that make up the spline.
Definition at line 28 of file Spline.cs.
◆ segments
Curve [] ARLocation.Spline.segments |
|
protected |
The CatmullRom curve-segments of the spline.
Definition at line 23 of file Spline.cs.
◆ Length
float ARLocation.Spline.Length |
|
getprotected set |
The full (estimated) length of the spline.
Definition at line 33 of file Spline.cs.
◆ Points
Vector3 [] ARLocation.Spline.Points |
|
getprotected set |
The points interpolated of the spline.
Definition at line 18 of file Spline.cs.
The documentation for this class was generated from the following file: