CSS Logo XNACS1Lib Library Documentation
XNACS1Primitive.RightOf Method 

Game-Themed Introductory Programming Project   

Returns if the center of this primitive is "to the right" (in x) in relation to the center of otherPrimitive

public bool RightOf(
   XNACS1Primitive otherPrimitive
);

Parameters

otherPrimitive
the other primitive

Return Value

True: if the center's x value of this primitive is larger than the x value of the max bound of the otherPrimitive.

See Also

XNACS1Primitive Class | XNACS1Lib Namespace