Rect

Constructors

this
this(float left, float top, float width, float height)

Members

Functions

getBottomLeft
Vector2 getBottomLeft()
getBottomRight
Vector2 getBottomRight()
getCenter
Vector2 getCenter()
getClosestSide
Side getClosestSide(Rect rect)
getClosestSide
Side getClosestSide(Vector2 position)
getSize
Vector2 getSize()
getTopLeft
Vector2 getTopLeft()
getTopRight
Vector2 getTopRight()
set
void set(float left, float top, float width, float height)

Sets the position and dimensions of the rect in a single statement

Properties

bottom
float bottom [@property getter]
bottom
float bottom [@property setter]
right
float right [@property getter]
right
float right [@property setter]

Variables

height
float height;
left
float left;
top
float top;
width
float width;

Meta