Gorgon Game Engine
PointProperty.h File Reference
Include dependency graph for PointProperty.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  basic_PointProperty< C_, T_, Getter_, Setter_ >
 Property support for point class. More...
 

Namespaces

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

Typedefs

template<class C_ , Pointf(C_::*)() const Getter_, void(C_::*)(const Pointf &) Setter_>
using PointfProperty = basic_PointProperty< C_, Pointf, Getter_, Setter_ >
 
template<class C_ , Point(C_::*)() const Getter_, void(C_::*)(const Point &) Setter_>
using PointProperty = basic_PointProperty< C_, Point, Getter_, Setter_ >
 

Functions

template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void HorizontalMirror (basic_PointProperty< C_, T_, Getter_, Setter_ > &point)
 Reflects the given point horizontally. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void HorizontalMirror (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const basic_Point< T_ > &origin)
 Reflects the given point horizontally considering given origin. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void ReflectX (basic_PointProperty< C_, T_, Getter_, Setter_ > &point)
 Reflects the given point along the X axis. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void ReflectX (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const basic_Point< T_ > &origin)
 Reflects the given point along the X axis considering given origin. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void ReflectY (basic_PointProperty< C_, T_, Getter_, Setter_ > &point)
 Reflects the given point along the Y axis. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void ReflectY (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const basic_Point< T_ > &origin)
 Reflects the given point along the Y axis considering given origin. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void Rotate (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, Float angle)
 Rotates the given point by the given angle. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void Rotate (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, Float angle, const T_ &origin)
 Rotates the given point by the given angle around the given origin. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O1_ , class O2_ >
void Scale (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const O1_ &sizex, const O2_ &sizey)
 Scales the given point by the given factors for x and y coordinates. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O1_ , class O2_ >
void Scale (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const O1_ &sizex, const O2_ &sizey, const T_ &origin)
 Scales the given point by the given factor, considering given point as origin. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O_ >
void Scale (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const O_ &size)
 Scales the given point by the given factor. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O_ >
void Scale (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const O_ &size, const basic_Point< T_ > &origin)
 Scales the given point by the given factor, considering given point as origin. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O_ >
void SkewX (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const O_ &rate)
 Skews the given point with the given rate along X axis. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O_ >
void SkewX (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const O_ &rate, const T_ &origin)
 Skews the given point with the given rate along X axis considering given point as the origin. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O_ >
void SkewY (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const O_ &rate)
 Skews the given point with the given rate along Y axis. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O_ >
void SkewY (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const O_ &rate, const basic_Point< T_ > &origin)
 Skews the given point with the given rate along Y axis considering given point as the origin. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void Translate (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const T_ &other)
 Translation moves the given point by the given amount. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_, class O_ >
void Translate (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, O_ x, O_ y)
 Translation moves the given point by the given amount. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void VerticalMirror (basic_Point< T_ > &point)
 Reflects the given point vertically. More...
 
template<class C_ , class T_ , T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
void VerticalMirror (basic_PointProperty< C_, T_, Getter_, Setter_ > &point, const basic_Point< T_ > &origin)
 Reflects the given point vertically considering given origin. More...