#include <quad.h>
Attributes | |
| Type | get_width () const |
| Returns the width of the quad. | |
| Type | get_height () const |
| Returns the height of the quad. | |
| CL_Sizex< Type > | get_size () const |
| Returns the size of the rectangle. | |
| CL_Rect | get_bounds () const |
| Returns the bounding box of the quad as a CL_Rect. | |
| CL_Vec2< Type > | p |
| First Point. | |
| CL_Vec2< Type > | q |
| Second Point. | |
| CL_Vec2< Type > | r |
| Third Point. | |
| CL_Vec2< Type > | s |
| Fourth Point. | |
Public Member Functions | |
Construction | |
| CL_Quadx () | |
| Constructs a quad. | |
| CL_Quadx (const CL_Vec2< Type > &new_p, const CL_Vec2< Type > &new_q, const CL_Vec2< Type > &new_r, const CL_Vec2< Type > &new_s) | |
| Constructs a quad. | |
| CL_Quadx (const CL_Rectx< Type > &rect) | |
| Constructs a quad. | |
| CL_Quadx (const CL_Quadx< Type > &quad) | |
| Constructs a quad. | |
| CL_Quadx< Type > & | operator+= (const CL_Quadx< Type > &quad) |
| Quad += Quad operator. | |
| CL_Quadx< Type > & | operator-= (const CL_Quadx< Type > &quad) |
| Quad -= Quad operator. | |
| CL_Quadx< Type > & | operator+= (const CL_Vec2< Type > &point) |
| Quad += Point operator. | |
| CL_Quadx< Type > & | operator-= (const CL_Vec2< Type > &point) |
| Quad -= Point operator. | |
| CL_Quadx< Type > | operator+ (const CL_Quadx< Type > &quad) const |
| Quad + Quad operator. | |
| CL_Quadx< Type > | operator- (const CL_Quadx< Type > &quad) const |
| Quad - Quad operator. | |
| CL_Quadx< Type > | operator+ (const CL_Vec2< Type > &point) const |
| Quad + Point operator. | |
| CL_Quadx< Type > | operator- (const CL_Vec2< Type > &point) const |
| Quad - Point operator. | |
| bool | operator== (const CL_Quadx< Type > &quad) const |
| Quad == Quad operator. | |
| bool | operator!= (const CL_Quadx< Type > &quad) const |
| Quad != Quad operator. | |
Operations | |
| CL_Quadx< Type > & | rotate (const CL_Vec2< Type > &hotspot, const CL_Angle &angle) |
| Rotates the Quad. | |
| CL_Quadx< Type > & | scale (float sx, float sy) |
| Scale the Quad. | |
| CL_Quadx< Type > & | scale (const CL_Vec2< Type > &hotspot, float sx, float sy) |
| Scale the Quad. | |
| CL_Vec2< Type > | center () const |
| Returns the center point of the quad. | |
| CL_Quadx< Type > & | apply_alignment (CL_Origin origin, Type x, Type y) |
| Applies an origin and offset pair to this rectangle. | |
These quads templates are defined for: int (CL_Quad), float (CL_Quadf), double (CL_Quadd)
|
|||||||||
|
Constructs a quad.
|
|
||||||||||||||||||||||||
|
Constructs a quad.
|
|
||||||||||
|
Constructs a quad.
|
|
||||||||||
|
Constructs a quad.
|
|
||||||||||||||||||||
|
Applies an origin and offset pair to this rectangle.
|
|
|||||||||
|
Returns the center point of the quad.
|
|
|||||||||
|
Returns the bounding box of the quad as a CL_Rect.
|
|
|||||||||
|
Returns the height of the quad.
|
|
|||||||||
|
Returns the size of the rectangle.
|
|
|||||||||
|
Returns the width of the quad.
|
|
||||||||||
|
Quad != Quad operator.
|
|
||||||||||
|
Quad + Point operator.
|
|
||||||||||
|
Quad + Quad operator.
|
|
||||||||||
|
Quad += Point operator.
|
|
||||||||||
|
Quad += Quad operator.
|
|
||||||||||
|
Quad - Point operator.
|
|
||||||||||
|
Quad - Quad operator.
|
|
||||||||||
|
Quad -= Point operator.
|
|
||||||||||
|
Quad -= Quad operator.
|
|
||||||||||
|
Quad == Quad operator.
|
|
||||||||||||||||
|
Rotates the Quad.
|
|
||||||||||||||||||||
|
Scale the Quad.
|
|
||||||||||||||||
|
Scale the Quad.
|
|
|||||
|
First Point.
|
|
|||||
|
Second Point.
|
|
|||||
|
Third Point.
|
|
|||||
|
Fourth Point.
|
1.4.6