CSS Logo XNACS1Lib Library Documentation
XNACS1Primitive.LeftOf Method 

Game-Themed Introductory Programming Project   

Returns if the center of this primitive is "to the left" (in x) in relation to the center of otherPrimtive

public bool LeftOf(
   XNACS1Primitive otherPrimitive
);

Parameters

otherPrimitive
the other primitive

Return Value

True: if the center's x value of this primitive is smaller than the x value of the min bound of otherPrimitive

See Also

XNACS1Primitive Class | XNACS1Lib Namespace