Operator Implicit
Implicit(quaternion to 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(Quaternion to 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(float4 to quaternion)
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. |