Class SystemNumericsExtensions
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public static class SystemNumericsExtensions
Methods
ConvertToUnityQuaternion(Quaternion, ref UnityEngine.Quaternion)
Converts this System.Numerics Quaternion to a UnityEngine Quaternion, storing values directly in referenced parameter
Declaration
public static void ConvertToUnityQuaternion(this Quaternion source, ref UnityEngine.Quaternion target)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | source | |
UnityEngine.Quaternion | target |
ConvertToUnityVector3(Vector3, ref UnityEngine.Vector3)
Converts this System.Numerics Vector3 to a UnityEngine Vector3 format, storing values directly in referenced parameter
Declaration
public static void ConvertToUnityVector3(this Vector3 source, ref UnityEngine.Vector3 target)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | source | |
UnityEngine.Vector3 | target |
ToUnityQuaternion(Quaternion)
Converts this System.Numerics Quaternion to a UnityEngine Quaternion.
Declaration
public static UnityEngine.Quaternion ToUnityQuaternion(this Quaternion quaternion)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | quaternion | The quaternion to convert. |
Returns
Type | Description |
---|---|
UnityEngine.Quaternion | The converted quaternion. |
ToUnityVector3(Vector3)
Converts this System.Numerics Vector3 to a UnityEngine Vector3.
Declaration
public static UnityEngine.Vector3 ToUnityVector3(this Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The vector to convert. |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 | The converted vector. |