All Classes |Grouped Classes |Index

Class CL_Quadx

2D quad structure. More...

Derived from:

None

Derived by:

None

Group:

Math (Core)

#include <ClanLib/core.h>

Class Members:

Construction:

CL_Quadx

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:

p

First Point.

q

Second Point.

r

Third Point.

s

Fourth Point.

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:

These quads templates are defined for: int ( CL_Quad ), float ( CL_Quadf ), double ( CL_Quadd )