Operator implicit operator
implicit operator Quaternion(quaternion)
Converts a quaternion to Quaternion.
Declaration
public static implicit operator Quaternion(quaternion q)
Parameters
Type | Name | Description |
---|---|---|
quaternion | q | quaternion to convert. |
Returns
Type | Description |
---|---|
Quaternion | The converted Quaternion. |
implicit operator quaternion(Quaternion)
Converts a Quaternion to quaternion.
Declaration
public static implicit operator quaternion(Quaternion q)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | q | Quaternion to convert. |
Returns
Type | Description |
---|---|
quaternion | The converted quaternion. |
implicit operator quaternion(float4)
Implicitly converts a float4 vector to a quaternion.
Declaration
public static implicit operator quaternion(float4 v)
Parameters
Type | Name | Description |
---|---|---|
float4 | v | The quaternion xyzw component values. |
Returns
Type | Description |
---|---|
quaternion | The quaternion constructed from a float4 vector. |