Converts a direction vector from world space (or the parent space for nested coordinate spaces) to local space.

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.9.0.0 (1.9.3.9490)

Syntax

C#
public Vector3F ToLocalDirection(
	Vector3F worldDirection
)
Visual Basic
Public Function ToLocalDirection ( _
	worldDirection As Vector3F _
) As Vector3F
Visual C++
public:
Vector3F ToLocalDirection(
	Vector3F worldDirection
)

Parameters

worldDirection
Type: DigitalRune.Mathematics.Algebra..::..Vector3F
The direction vector in world space (or the parent space for nested coordinate spaces).

Return Value

The direction in local space.

Remarks

This method can be used to transform direction vectors. It applies only the rotation to the vector. The translation is ignored.

See Also