ClanLib
2.3.7
|
2D quad structure - Float More...
#include <quad.h>
Public Member Functions | |
CL_Quadf () | |
CL_Quadf (const CL_Vec2< float > &new_p, const CL_Vec2< float > &new_q, const CL_Vec2< float > &new_r, const CL_Vec2< float > &new_s) | |
CL_Quadf (const CL_Rectf &rect) | |
CL_Quadf (const CL_Quadx< float > &quad) | |
Construction | |
CL_Quadx< float > & | operator+= (const CL_Quadx< float > &quad) |
Quad += Quad operator. More... | |
CL_Quadx< float > & | operator+= (const CL_Vec2< float > &point) |
Quad += Point operator. More... | |
CL_Quadx< float > & | operator-= (const CL_Quadx< float > &quad) |
Quad -= Quad operator. More... | |
CL_Quadx< float > & | operator-= (const CL_Vec2< float > &point) |
Quad -= Point operator. More... | |
CL_Quadx< float > | operator+ (const CL_Quadx< float > &quad) const |
Quad + Quad operator. More... | |
CL_Quadx< float > | operator+ (const CL_Vec2< float > &point) const |
Quad + Point operator. More... | |
CL_Quadx< float > | operator- (const CL_Quadx< float > &quad) const |
Quad - Quad operator. More... | |
CL_Quadx< float > | operator- (const CL_Vec2< float > &point) const |
Quad - Point operator. More... | |
bool | operator== (const CL_Quadx< float > &quad) const |
Quad == Quad operator. More... | |
bool | operator!= (const CL_Quadx< float > &quad) const |
Quad != Quad operator. More... | |
Operations | |
CL_Quadx< float > & | rotate (const CL_Vec2< float > &hotspot, const CL_Angle &angle) |
Rotates the Quad. More... | |
CL_Quadx< float > & | scale (float sx, float sy) |
Scale the Quad. More... | |
CL_Quadx< float > & | scale (const CL_Vec2< float > &hotspot, float sx, float sy) |
Scale the Quad. More... | |
CL_Vec2< float > | center () const |
Returns the center point of the quad. More... | |
CL_Quadx< float > & | apply_alignment (CL_Origin origin, floatx, floaty) |
Applies an origin and offset pair to this rectangle. More... | |
Attributes | |
float | get_width () const |
Returns the width of the quad. More... | |
float | get_height () const |
Returns the height of the quad. More... | |
CL_Sizex< float > | get_size () const |
Returns the size of the rectangle. More... | |
CL_Rect | get_bounds () const |
Returns the bounding box of the quad as a CL_Rect. More... | |
CL_Vec2< float > | p |
First Point. More... | |
CL_Vec2< float > | q |
Second Point. More... | |
CL_Vec2< float > | r |
Third Point. More... | |
CL_Vec2< float > | s |
Fourth Point. More... | |
2D quad structure - Float
|
inline |
|
inline |
|
inline |
|
inline |
|
inherited |
Applies an origin and offset pair to this rectangle.
origin | The new origin to adjust to from default upper-left position |
x,y | Offsets applied negatively to each corner of the rectangle |
Returns the bounding box of the quad as a CL_Rect.
|
inherited |
Returns the height of the quad.
Returns the size of the rectangle.
|
inherited |
Returns the width of the quad.
Quad != Quad operator.
|
inlineinherited |
Quad + Quad operator.
|
inlineinherited |
Quad + Point operator.
Quad += Quad operator.
Quad += Point operator.
|
inlineinherited |
Quad - Quad operator.
|
inlineinherited |
Quad - Point operator.
Quad -= Quad operator.
Quad -= Point operator.
Quad == Quad operator.
|
inherited |
Rotates the Quad.
hotspot | Point to rotate around. |
angle | Angle to rotate in degrees. |
Scale the Quad.
sx | = Scale value in x-axis |
sy | = Scale value in y-axis |
|
inherited |
Scale the Quad.
sx | = Scale value in x-axis |
sy | = Scale value in y-axis |
hotspot | = Point to scale around. |