Gorgon Game Engine
Point.h File Reference

contains point class. More...

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

Go to the source code of this file.

Classes

class  basic_Point< T_ >
 This class represents a 2D point. More...
 

Namespaces

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

Typedefs

using Point = basic_Point< int >
 
using Pointf = basic_Point< Float >
 

Functions

template<class T_ >
void HorizontalMirror (basic_Point< T_ > &point)
 Reflects the given point horizontally. More...
 
template<class T_ >
void HorizontalMirror (basic_Point< T_ > &point, const basic_Point< T_ > &origin)
 Reflects the given point horizontally considering given origin. More...
 
template<class T_ >
std::ostream & operator<< (std::ostream &out, const basic_Point< T_ > &point)
 Allows streaming of point. More...
 
template<class T_ >
std::istream & operator>> (std::istream &in, basic_Point< T_ > &point)
 Reads a point from a stream. More...
 
template<class T_ >
void ReflectX (basic_Point< T_ > &point)
 Reflects the given point along the X axis. More...
 
template<class T_ >
void ReflectX (basic_Point< T_ > &point, const basic_Point< T_ > &origin)
 Reflects the given point along the X axis considering given origin. More...
 
template<class T_ >
void ReflectY (basic_Point< T_ > &point)
 Reflects the given point along the Y axis. More...
 
template<class T_ >
void ReflectY (basic_Point< T_ > &point, const basic_Point< T_ > &origin)
 Reflects the given point along the Y axis considering given origin. More...
 
template<class T_ >
void Rotate (basic_Point< T_ > &point, Float angle)
 Rotates the given point by the given angle. More...
 
template<class T_ >
void Rotate (basic_Point< T_ > &point, Float angle, const basic_Point< T_ > &origin)
 Rotates the given point by the given angle around the given origin. More...
 
Pointf Round (Pointf num)
 Performs a rounding operation over a floating point point. More...
 
template<class T_ , class O1_ , class O2_ >
void Scale (basic_Point< T_ > &point, const O1_ &sizex, const O2_ &sizey)
 Scales the given point by the given factors for x and y coordinates. More...
 
template<class T_ , class O1_ , class O2_ >
void Scale (basic_Point< T_ > &point, const O1_ &sizex, const O2_ &sizey, const basic_Point< T_ > &origin)
 Scales the given point by the given factor, considering given point as origin. More...
 
template<class T_ , class O_ >
void Scale (basic_Point< T_ > &point, const O_ &size)
 Scales the given point by the given factor. More...
 
template<class T_ , class O_ >
void Scale (basic_Point< T_ > &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 T_ , class O_ >
void SkewX (basic_Point< T_ > &point, const O_ &rate)
 Skews the given point with the given rate along X axis. More...
 
template<class T_ , class O_ >
void SkewX (basic_Point< T_ > &point, const O_ &rate, const basic_Point< T_ > &origin)
 Skews the given point with the given rate along X axis considering given point as the origin. More...
 
template<class T_ , class O_ >
void SkewY (basic_Point< T_ > &point, const O_ &rate)
 Skews the given point with the given rate along Y axis. More...
 
template<class T_ , class O_ >
void SkewY (basic_Point< T_ > &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 T_ >
void Translate (basic_Point< T_ > &point, const basic_Point< T_ > &other)
 Translation moves the given point by the given amount. More...
 
template<class T_ , class O_ >
void Translate (basic_Point< T_ > &point, O_ x, O_ y)
 Translation moves the given point by the given amount. More...
 
template<class T_ >
void VerticalMirror (basic_Point< T_ > &point)
 Reflects the given point vertically. More...
 
template<class T_ >
void VerticalMirror (basic_Point< T_ > &point, const basic_Point< T_ > &origin)
 Reflects the given point vertically considering given origin. More...
 

Detailed Description

contains point class.