Introduction The Left, Right, Top, and Bottom properties on AxisAlignedRectangle return the absolute position of the respective side. Code Example The following code shows how to get the four values (Left, Right, Top, and Bottom):

Setting values Setting Left, Right, Top, and Bottom results in the X or Y values of the AxisAlignedRectangle changing.[…]


Introduction The AxisAlignedRectangle is a PositionedObject which is used for unrotated bounding box collision. This is preferred over Polygon collision if Sprites are not rotated due to speed and memory usage considerations. AxisAlignedRectangles share many similarities with the other shape classes (Circle, Line, and Polygon). For general information about shapes, see the ShapeManager wiki entry.[…]