Class SplineDataProvider
Creates a spline based on control points.
Inheritance
SplineDataProvider
Assembly: cs.temp.dll.dll
public class SplineDataProvider : BaseMixedRealityLineDataProvider
Properties
Declaration
public bool AlignAllControlPoints { get; set; }
Property Value
Declaration
public MixedRealityPose[] ControlPoints { get; }
Property Value
The number of points this line has.
Declaration
public override int PointCount { get; }
Property Value
Overrides
Methods
Forces all the control points into alignment.
Declaration
public void ForceUpdateAlignment()
Get a point based on point index
Point index will be pre-clamped
Declaration
protected override Vector3 GetPointInternal(int pointIndex)
Parameters
Type |
Name |
Description |
Int32 |
pointIndex |
|
Returns
Overrides
Get a point based on normalized distance along line
Normalized distance will be pre-clamped
Declaration
protected override Vector3 GetPointInternal(float normalizedDistance)
Parameters
Type |
Name |
Description |
Single |
normalizedDistance |
|
Returns
Overrides
Get the UnClamped world length of the line
Declaration
protected override float GetUnClampedWorldLengthInternal()
Returns
Overrides
Gets the up vector at a normalized length along line (used for rotation)
Declaration
protected override Vector3 GetUpVectorInternal(float normalizedLength)
Parameters
Type |
Name |
Description |
Single |
normalizedLength |
|
Returns
Overrides
Declaration
protected override void SetPointInternal(int pointIndex, Vector3 point)
Parameters
Type |
Name |
Description |
Int32 |
pointIndex |
|
Vector3 |
point |
|
Overrides