|
| Quad () |
|
| Quad (const Vec2< int > &new_p, const Vec2< int > &new_q, const Vec2< int > &new_r, const Vec2< int > &new_s) |
|
| Quad (const Rect &rect) |
|
| Quad (const Quadx< int > &quad) |
|
| Quadx () |
| Constructs a quad. More...
|
|
| Quadx (const Vec2< int > &new_p, const Vec2< int > &new_q, const Vec2< int > &new_r, const Vec2< int > &new_s) |
| Constructs a quad. More...
|
|
| Quadx (const Rectx< int > &rect) |
| Constructs a quad. More...
|
|
| Quadx (const Quadx< int > &quad) |
| Constructs a quad. More...
|
|
Quadx< int > & | apply_alignment (Origin origin, int x, int y) |
| Applies an origin and offset pair to this rectangle. More...
|
|
Rect | bounds () const |
| Returns the bounding box of the quad as a Rect. More...
|
|
Vec2< int > | center () const |
| Returns the center point of the quad. More...
|
|
int | height () const |
| Returns the height of the quad. More...
|
|
bool | is_inside (const Vec2< int > &point) const |
| Check if a point is inside or outside the quad. More...
|
|
bool | operator!= (const Quadx< int > &quad) const |
| Quad != Quad operator. More...
|
|
Quadx< int > | operator+ (const Quadx< int > &quad) const |
| Quad + Quad operator. More...
|
|
Quadx< int > | operator+ (const Vec2< int > &point) const |
| Quad + Point operator. More...
|
|
Quadx< int > & | operator+= (const Quadx< int > &quad) |
| Quad += Quad operator. More...
|
|
Quadx< int > & | operator+= (const Vec2< int > &point) |
| Quad += Point operator. More...
|
|
Quadx< int > | operator- (const Quadx< int > &quad) const |
| Quad - Quad operator. More...
|
|
Quadx< int > | operator- (const Vec2< int > &point) const |
| Quad - Point operator. More...
|
|
Quadx< int > & | operator-= (const Quadx< int > &quad) |
| Quad -= Quad operator. More...
|
|
Quadx< int > & | operator-= (const Vec2< int > &point) |
| Quad -= Point operator. More...
|
|
bool | operator== (const Quadx< int > &quad) const |
| Quad == Quad operator. More...
|
|
Quadx< int > & | rotate (const Vec2< int > &hotspot, float angle) |
| Rotates the Quad. More...
|
|
Quadx< int > & | scale (float sx, float sy) |
| Scale the Quad. More...
|
|
Quadx< int > & | scale (const Vec2< int > &hotspot, float sx, float sy) |
| Scale the Quad. More...
|
|
Sizex< int > | size () const |
| Returns the size of the rectangle. More...
|
|
int | width () const |
| Returns the width of the quad. More...
|
|
2D quad structure - Integer