LineUtility.GetPointAlongSpline Method

Definition

Gets the point along the spline.

public static UnityEngine.Vector3 GetPointAlongSpline (Microsoft.MixedReality.Toolkit.Utilities.MixedRealityPose[] points, float normalizedLength, Microsoft.MixedReality.Toolkit.InterpolationType interpolation = Microsoft.MixedReality.Toolkit.InterpolationType.Bezier);
static member GetPointAlongSpline : Microsoft.MixedReality.Toolkit.Utilities.MixedRealityPose[] * single * Microsoft.MixedReality.Toolkit.InterpolationType -> UnityEngine.Vector3
Public Function GetPointAlongSpline (points As MixedRealityPose(), normalizedLength As Single, Optional interpolation As InterpolationType = Microsoft.MixedReality.Toolkit.InterpolationType.Bezier) As Vector3

Parameters

points
MixedRealityPose[]

the points of the whole spline.

normalizedLength
Single

the normalized length along the line to calculate the point.

interpolation
InterpolationType

Optional Interpolation type to use when calculating the point.

Returns

UnityEngine.Vector3

The calculated point found along the normalized length.

Applies to