RectI

Engine/source/math/mRect.h

More...

Public Attributes

Public Static Attributes

A rect of 1,1 extent.

A rect of zero extent.

Public Functions

RectI(const Point2I & in_rMin, const Point2I & in_rExtent)
RectI(const S32 in_left, const S32 in_top, const S32 in_width, const S32 in_height)
area()

Returns the area of the rectangle.

bool
inset(S32 x, S32 y)
bool
intersect(const RectI & clipRect)
bool
bool
set(const Point2I & in_rMin, const Point2I & in_rExtent)
set(const S32 in_left, const S32 in_top, const S32 in_width, const S32 in_height)

Detailed Description

Public Attributes

Point2I extent 
Point2I point 

Public Static Attributes

const RectI One 

A rect of 1,1 extent.

const RectI Zero 

A rect of zero extent.

Public Functions

RectI()

RectI(const Point2I & in_rMin, const Point2I & in_rExtent)

RectI(const S32 in_left, const S32 in_top, const S32 in_width, const S32 in_height)

area()

Returns the area of the rectangle.

contains(const RectI & R)

inset(S32 x, S32 y)

intersect(const RectI & clipRect)

isValidRect()

len_x()

len_y()

operator!=(const RectI & )

operator==(const RectI & )

overlaps(RectI R)

pointInRect(const Point2I & pt)

set(const Point2I & in_rMin, const Point2I & in_rExtent)

set(const S32 in_left, const S32 in_top, const S32 in_width, const S32 in_height)

unionRects(const RectI & )