Recalculates the direction vector in the local coordinates of another sprite to the local coordinates of this sprite.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public Vector3 GetLocalDirection( XSprite sprite, Vector3 localDirection ) |
Parameters
- sprite
- Type: SGP.XSpace..::.XSprite
The XSprite sprite that the localDirection direction vector in the local coordinates relates to.
- localDirection
- Type: Vector3
Direction vector in the local coordinates of the sprite sprite.
Return Value
Returns recalculated direction vector in the local coordinates of this sprite.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | sprite is nullNothingnullptra null reference (Nothing in Visual Basic). |