CSS Logo XNACS1Lib Library Documentation
XNACS1Primitive.Collided Method (XNACS1Primitive, Vector2)

Game-Themed Introductory Programming Project   

Determines if this primitive collides with the otherPrimitive. If true, pos is the colliding position.

public bool Collided(
   XNACS1Primitive otherPrimitive,
   Vector2 pos
);

Parameters

otherPrimitive
the other primitive.
pos
If two primitives collide, this is the "average" of all the possible colliding positions.

Return Value

True: if the two primitives has collided. Pos is the approximated colliding position. False: if the two primitives do not collide, (Pos is undefined in this case).

See Also

XNACS1Primitive Class | XNACS1Lib Namespace | XNACS1Primitive.Collided Overload List