A catmull-rom curve.
More...
|
float | T0 [get] |
|
float | T1 [get] |
|
float | T2 [get] |
|
float | T3 [get] |
|
float | Alpha [get, set] |
| Gets or sets the alpha. More...
|
|
Vector3 | P0 [get, set] |
|
Vector3 | P1 [get, set] |
|
Vector3 | P2 [get, set] |
|
Vector3 | P3 [get, set] |
|
A catmull-rom curve.
Definition at line 8 of file CatmullRomCurve.cs.
◆ CatmullRomCurve()
ARLocation.CatmullRomCurve.CatmullRomCurve |
( |
Vector3 |
p0, |
|
|
Vector3 |
p1, |
|
|
Vector3 |
p2, |
|
|
Vector3 |
p3, |
|
|
float |
alpha |
|
) |
| |
Creates a catmull-rom curve with control points p0, p1, p2 and p3, and with a given alpha/tension parameter.
- Parameters
-
Definition at line 144 of file CatmullRomCurve.cs.
◆ EstimateLength()
override float ARLocation.CatmullRomCurve.EstimateLength |
( |
int |
n = 100 | ) |
|
|
virtual |
◆ GetParameterForLength()
override float ARLocation.CatmullRomCurve.GetParameterForLength |
( |
float |
s | ) |
|
|
virtual |
◆ GetPoint()
override Vector3 ARLocation.CatmullRomCurve.GetPoint |
( |
float |
u | ) |
|
|
virtual |
Calculates the curve at a point u, where u is between 0 and 1.
- Parameters
-
u | The curve parameter in the [0, 1] interval. |
- Returns
Implements ARLocation.Curve.
Definition at line 172 of file CatmullRomCurve.cs.
◆ GetPointAndTangent()
override CurvePointData ARLocation.CatmullRomCurve.GetPointAndTangent |
( |
float |
u | ) |
|
|
virtual |
Calculates the point and the tangent of the curve.
- Parameters
-
u | The curve parameter in the [0, 1] interval. |
- Returns
Implements ARLocation.Curve.
Definition at line 194 of file CatmullRomCurve.cs.
◆ GetPointAndTangentAtLength()
override CurvePointData ARLocation.CatmullRomCurve.GetPointAndTangentAtLength |
( |
float |
s | ) |
|
|
virtual |
◆ GetPointAtLength()
override Vector3 ARLocation.CatmullRomCurve.GetPointAtLength |
( |
float |
s | ) |
|
|
virtual |
◆ Sample()
override Vector3 [] ARLocation.CatmullRomCurve.Sample |
( |
int |
n | ) |
|
|
virtual |
Creates a sample of (N+2) points (i.e., N + start and end points) of the current curve. Also calculates the length estimate.
- Returns
- The sample.
- Parameters
-
Implements ARLocation.Curve.
Definition at line 230 of file CatmullRomCurve.cs.
◆ Alpha
float ARLocation.CatmullRomCurve.Alpha |
|
getset |
The documentation for this class was generated from the following file: