Recalculates the sprite sprite local coordinate to the local coordinate of the parent sprite.

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

Syntax

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

Parameters

sprite
Type: SGP.XSpace..::.XSprite
Sprite defining the world coordinates.
localPosition
Type: Vector3
Local coordinate in the sprite sprite.

Return Value

Returns recalculated coordinates.

Exceptions

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

See Also