Method TransformDirection
TransformDirection(float3)
Transforms a direction by this transform.
Declaration
public float3 TransformDirection(float3 direction)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | direction | The direction vector to be transformed. This vector does not need to be unit-length. |
Returns
| Type | Description |
|---|---|
| float3 | The direction after transformation. |
Remarks
To transform a directional vector, use TransformDirection(float3). To apply the inverse transform instead, use InverseTransformDirection(float3).
Examples