Home |All Classes |Grouped Classes |Index |Search

Class CL_Quad

2D (x1, y1, x2, y2, x3, y3, x4, y4) quad structure. More...

Derived from:

None

Derived by:

None

Group:

Math (Core)

#include <ClanLib/core.h>

Class Members:

Construction:

CL_Quad

Constructs a quad.

operator+=

Quad += Quad operator.

operator-=

Quad -= Quad operator.

operator+

Quad + Quad operator.

operator-

Quad - Quad operator.

operator==

Quad == Quad operator.

operator!=

Quad != Quad operator.


Attributes:

get_width

Returns the width of the quad.

get_height

Returns the height of the quad.

get_size

Returns the size of the rectangle.

get_bounds

Returns the bounding box of the quad as a CL_Rect .

x1

X1-coordinate.

y1

Y1-coordinate.

x2

X2-coordinate.

y2

Y2-coordinate.

x3

X3-coordinate.

y3

Y3-coordinate.

x4

X4-coordinate.

y4

Y4-coordinate.


Operations:

rotate

Rotates the Quad.

scale

Scale the Quad.

center

Returns the center point of the quad.

apply_alignment

Applies an origin and offset pair to this rectangle.