Gorgon Game Engine
Bounds.h File Reference

contains the Bounds class More...

Include dependency graph for Bounds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  basic_Bounds< T_ >
 This class represents boundaries of 2D objects. More...
 

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 
 Gorgon::Geometry
 This namespace contains geometric element classes.
 

Typedefs

typedef basic_Bounds< int > Bounds
 
typedef basic_Bounds< Float > Boundsf
 

Functions

template<class T_ >
bool Contains (const basic_Bounds< T_ > &outer, const basic_Bounds< T_ > &inner)
 Checks whether the outer bounds contain inner bounds. More...
 
template<class T_ >
basic_Bounds< T_ > Intersect (const basic_Bounds< T_ > &l, const basic_Bounds< T_ > &r)
 Creates a new bounds that contains only the intersection of two bounds. More...
 
template<class T_ >
bool IsColliding (const basic_Bounds< T_ > &l, const basic_Bounds< T_ > &r)
 Checks whether two bounds are colliding. More...
 
template<class T_ >
bool IsInside (const basic_Bounds< T_ > &b, const basic_Point< T_ > &p)
 Checks whether the given point is inside this bounds. More...
 
template<class T_ >
std::ostream & operator<< (std::ostream &out, const basic_Bounds< T_ > &bounds)
 Allows streaming of bounds. More...
 
template<class T_ >
std::istream & operator>> (std::istream &in, basic_Bounds< T_ > &bounds)
 Stream extractor for bounds. More...
 
template<class T_ >
void Rotate (basic_Bounds< T_ > &bounds, Float angle)
 Rotates the given bounds by the given angle. More...
 
template<class T_ >
void Rotate (basic_Bounds< T_ > &bounds, Float angle, const basic_Point< T_ > &origin)
 Rotates the given bounds by the given angle around the given origin. More...
 
template<class T_ , class O_ >
void Scale (basic_Bounds< T_ > &bounds, const basic_Size< O_ > &size)
 Scales the given bounds by the given factors for x and y coordinates. Center of the bounds is used as origin. More...
 
template<class T_ , class O_ >
void Scale (basic_Bounds< T_ > &bounds, const basic_Size< O_ > &size, const basic_Point< T_ > &origin)
 Scales the given bounds by the given factor, considering specified point as origin. More...
 
template<class T_ , class O_ >
void Scale (basic_Bounds< T_ > &bounds, const O_ &size)
 Scales the given bounds by the given factor. Center of the bounds is used as origin. More...
 
template<class T_ , class O_ >
void Scale (basic_Bounds< T_ > &bounds, const O_ &size, const basic_Point< T_ > &origin)
 Scales the given bounds by the given factor, considering specified point as origin. More...
 
template<class T_ , class O_ >
void Scale (basic_Bounds< T_ > &bounds, const O_ &sizex, const O_ &sizey)
 Scales the given bounds by the given factors for x and y coordinates. Center of the bounds is used as origin. More...
 
template<class T_ , class O_ >
void Scale (basic_Bounds< T_ > &bounds, const O_ &sizex, const O_ &sizey, const basic_Point< T_ > &origin)
 Scales the given bounds by the given factor, considering specified point as origin. More...
 
template<class T_ , class O_ >
void SkewX (basic_Bounds< T_ > &bounds, const O_ &rate)
 Skews the given bounds with the given rate along X axis. More...
 
template<class T_ , class O_ >
void SkewX (basic_Bounds< T_ > &bounds, const O_ &rate, const basic_Point< T_ > &origin)
 Skews the given bounds with the given rate along X axis considering given bounds as the origin. More...
 
template<class T_ , class O_ >
void SkewY (basic_Bounds< T_ > &bounds, const O_ &rate)
 Skews the given bounds with the given rate along Y axis. More...
 
template<class T_ , class O_ >
void SkewY (basic_Bounds< T_ > &bounds, const O_ &rate, const basic_Point< T_ > &origin)
 Skews the given bounds with the given rate along Y axis considering given bounds as the origin. More...
 
template<class T_ >
void Translate (basic_Bounds< T_ > &bounds, const basic_Point< T_ > &other)
 Translation moves the given bounds by the given amount. More...
 
template<class T_ , class O_ >
void Translate (basic_Bounds< T_ > &bounds, O_ x, O_ y)
 Translation moves the given bounds by the given amount. More...
 
template<class T_ >
basic_Bounds< T_ > Union (const basic_Bounds< T_ > &l, const basic_Bounds< T_ > &r)
 Returns the smallest bounds that contains given bounds. More...
 

Detailed Description

contains the Bounds class