2D quad structure - Double More...

#include <quad.h>

+ Inheritance diagram for clan::Quadd:

Public Member Functions

 Quadd ()
 
 Quadd (const Vec2< double > &new_p, const Vec2< double > &new_q, const Vec2< double > &new_r, const Vec2< double > &new_s)
 
 Quadd (const Rectd &rect)
 
 Quadd (const Quadx< double > &quad)
 
- Public Member Functions inherited from clan::Quadx< double >
 Quadx ()
 Constructs a quad. More...
 
 Quadx (const Vec2< double > &new_p, const Vec2< double > &new_q, const Vec2< double > &new_r, const Vec2< double > &new_s)
 Constructs a quad. More...
 
 Quadx (const Rectx< double > &rect)
 Constructs a quad. More...
 
 Quadx (const Quadx< double > &quad)
 Constructs a quad. More...
 
Quadx< double > & apply_alignment (Origin origin, doublex, doubley)
 Applies an origin and offset pair to this rectangle. More...
 
Vec2< double > center () const
 Returns the center point of the quad. More...
 
Rect get_bounds () const
 Returns the bounding box of the quad as a Rect. More...
 
double get_height () const
 Returns the height of the quad. More...
 
Sizex< double > get_size () const
 Returns the size of the rectangle. More...
 
double get_width () const
 Returns the width of the quad. More...
 
bool is_inside (const Vec2< double > &point) const
 Check if a point is inside or outside the quad. More...
 
bool operator!= (const Quadx< double > &quad) const
 Quad != Quad operator. More...
 
Quadx< double > operator+ (const Quadx< double > &quad) const
 Quad + Quad operator. More...
 
Quadx< double > operator+ (const Vec2< double > &point) const
 Quad + Point operator. More...
 
Quadx< double > & operator+= (const Quadx< double > &quad)
 Quad += Quad operator. More...
 
Quadx< double > & operator+= (const Vec2< double > &point)
 Quad += Point operator. More...
 
Quadx< double > operator- (const Quadx< double > &quad) const
 Quad - Quad operator. More...
 
Quadx< double > operator- (const Vec2< double > &point) const
 Quad - Point operator. More...
 
Quadx< double > & operator-= (const Quadx< double > &quad)
 Quad -= Quad operator. More...
 
Quadx< double > & operator-= (const Vec2< double > &point)
 Quad -= Point operator. More...
 
bool operator== (const Quadx< double > &quad) const
 Quad == Quad operator. More...
 
Quadx< double > & rotate (const Vec2< double > &hotspot, const Angle &angle)
 Rotates the Quad. More...
 
Quadx< double > & scale (float sx, float sy)
 Scale the Quad. More...
 
Quadx< double > & scale (const Vec2< double > &hotspot, float sx, float sy)
 Scale the Quad. More...
 

Additional Inherited Members

- Public Attributes inherited from clan::Quadx< double >
Vec2< double > p
 First Point. More...
 
Vec2< double > q
 Second Point. More...
 
Vec2< double > r
 Third Point. More...
 
Vec2< double > s
 Fourth Point. More...
 

Detailed Description

2D quad structure - Double

Constructor & Destructor Documentation

clan::Quadd::Quadd ( )
inline
clan::Quadd::Quadd ( const Vec2< double > &  new_p,
const Vec2< double > &  new_q,
const Vec2< double > &  new_r,
const Vec2< double > &  new_s 
)
inline
clan::Quadd::Quadd ( const Rectd rect)
inline
clan::Quadd::Quadd ( const Quadx< double > &  quad)
inline

The documentation for this class was generated from the following file: