Tests collision with another sprite.

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

Syntax

C#
public bool CollideWith(
	XSprite sprite,
	out float distance
)

Parameters

sprite
Type: SGP.XSpace..::.XSprite
The sprite tested for collision.
distance
Type: System..::.Single %
The distance between sprites.

Return Value

Returns trueTruetruetrue (True in Visual Basic) whether the sprites collide, else falseFalsefalsefalse (False in Visual Basic).

Exceptions

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

See Also