Recalculates the sprite sprite localPosition local coordinate to the local coordinates (of this sprite).

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public Vector3 GetLocalPosition(
	XSprite sprite,
	Vector3 localPosition
)

Parameters

sprite
Type: SGP.XSpace..::.XSprite
Sprite that defines the localPosition local coordinate.
localPosition
Type: Vector3
The sprite sprite local coordinate.

Return Value

Returns recalculated local coordinate.

Exceptions

ExceptionCondition
System..::.ArgumentNullException sprite is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also