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: Core (Math)

#include <ClanLib/core.h>

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:

x1

X1-coordinate.

y1

Y1-coordinate.

x2

X2-coordinate.

y2

Y2-coordinate.

x3

X3-coordinate.

y3

Y3-coordinate.

x4

X4-coordinate.

y4

Y4-coordinate.

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

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

Detailed description:

!group=Core/Math! !header=core.h!


Questions or comments, write to the
ClanLib mailing list.