BaseMixedRealityLineDataProvider.GetRotation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetRotation(Int32, LineRotationMode) |
Gets the rotation of a point along the line at the specified index |
GetRotation(Single, LineRotationMode) |
Gets the rotation of a point along the line at the specified length |
GetRotation(Int32, LineRotationMode)
Gets the rotation of a point along the line at the specified index
public UnityEngine.Quaternion GetRotation (int pointIndex, Microsoft.MixedReality.Toolkit.LineRotationMode lineRotationMode = Microsoft.MixedReality.Toolkit.LineRotationMode.None);
member this.GetRotation : int * Microsoft.MixedReality.Toolkit.LineRotationMode -> UnityEngine.Quaternion
Public Function GetRotation (pointIndex As Integer, Optional lineRotationMode As LineRotationMode = Microsoft.MixedReality.Toolkit.LineRotationMode.None) As Quaternion
Parameters
- pointIndex
- Int32
- lineRotationMode
- LineRotationMode
Returns
UnityEngine.Quaternion
Applies to
GetRotation(Single, LineRotationMode)
Gets the rotation of a point along the line at the specified length
public UnityEngine.Quaternion GetRotation (float normalizedLength, Microsoft.MixedReality.Toolkit.LineRotationMode lineRotationMode = Microsoft.MixedReality.Toolkit.LineRotationMode.None);
member this.GetRotation : single * Microsoft.MixedReality.Toolkit.LineRotationMode -> UnityEngine.Quaternion
Public Function GetRotation (normalizedLength As Single, Optional lineRotationMode As LineRotationMode = Microsoft.MixedReality.Toolkit.LineRotationMode.None) As Quaternion
Parameters
- normalizedLength
- Single
- lineRotationMode
- LineRotationMode
Returns
UnityEngine.Quaternion