Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TPoint2D< T > Class Template Reference

#include <Point.h>

Inherited by TPoint3D< T >, and TPoint3D< T >.

Public Member Functions

 TPoint2D (void)
 
 TPoint2D (T x, T y)
 
bool operator== (TPoint2D< T > const &rvalue) const
 
bool operator!= (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const & operator+= (TPoint2D< T > const &rvalue)
 
TPoint2D< T > const & operator-= (TPoint2D< T > const &rvalue)
 
TPoint2D< T > const operator- (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const operator+ (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const operator* (T rvalue) const
 
TPoint2D< T > const & operator*= (T rvalue)
 
TPoint2D< T > const operator/ (T rvalue) const
 
TPoint2D< T > const & operator/= (T rvalue)
 
TPoint2D< T > const operator* (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const Dot_Product (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const Cross_Product (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const operator- (void) const
 
Length (void) const
 
TPoint2D< T > const Normalize (void) const
 
TPoint2D< T > const Bias_To (TRect< T > const &rect) const
 
Distance_To (TPoint2D< T > const &point) const
 
 TPoint2D (void)
 
 TPoint2D (T x, T y)
 
bool operator== (TPoint2D< T > const &rvalue) const
 
bool operator!= (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const & operator+= (TPoint2D< T > const &rvalue)
 
TPoint2D< T > const & operator-= (TPoint2D< T > const &rvalue)
 
TPoint2D< T > const operator- (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const operator+ (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const operator* (T rvalue) const
 
TPoint2D< T > const & operator*= (T rvalue)
 
TPoint2D< T > const operator/ (T rvalue) const
 
TPoint2D< T > const & operator/= (T rvalue)
 
TPoint2D< T > const operator* (TPoint2D< T > const &rvalue) const
 
Dot_Product (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const Cross_Product (TPoint2D< T > const &rvalue) const
 
TPoint2D< T > const operator- (void) const
 
Length (void) const
 
TPoint2D< T > const Normalize (void) const
 
Distance_To (TPoint2D< T > const &point) const
 

Public Attributes

X
 
Y
 

Detailed Description

template<class T>
class TPoint2D< T >

Definition at line 75 of file POINT.h.

Constructor & Destructor Documentation

◆ TPoint2D() [1/4]

template<class T>
TPoint2D< T >::TPoint2D ( void )
inline

Definition at line 55 of file Point.h.

◆ TPoint2D() [2/4]

template<class T>
TPoint2D< T >::TPoint2D ( T x,
T y )
inline

Definition at line 56 of file Point.h.

◆ TPoint2D() [3/4]

template<class T>
TPoint2D< T >::TPoint2D ( void )
inline

Definition at line 77 of file POINT.h.

◆ TPoint2D() [4/4]

template<class T>
TPoint2D< T >::TPoint2D ( T x,
T y )
inline

Definition at line 78 of file POINT.h.

Member Function Documentation

◆ Bias_To()

template<class T>
TPoint2D< T > const TPoint2D< T >::Bias_To ( TRect< T > const & rect) const

Definition at line 211 of file trect.h.

◆ Cross_Product() [1/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::Cross_Product ( TPoint2D< T > const & rvalue) const
inline

Definition at line 77 of file Point.h.

◆ Cross_Product() [2/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::Cross_Product ( TPoint2D< T > const & rvalue) const
inline

Definition at line 99 of file POINT.h.

◆ Distance_To() [1/2]

template<class T>
T TPoint2D< T >::Distance_To ( TPoint2D< T > const & point) const
inline

Definition at line 97 of file Point.h.

◆ Distance_To() [2/2]

template<class T>
T TPoint2D< T >::Distance_To ( TPoint2D< T > const & point) const
inline

Definition at line 116 of file POINT.h.

◆ Dot_Product() [1/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::Dot_Product ( TPoint2D< T > const & rvalue) const
inline

Definition at line 76 of file Point.h.

◆ Dot_Product() [2/2]

template<class T>
T TPoint2D< T >::Dot_Product ( TPoint2D< T > const & rvalue) const
inline

Definition at line 98 of file POINT.h.

◆ Length() [1/2]

template<class T>
T TPoint2D< T >::Length ( void ) const
inline

Definition at line 83 of file Point.h.

◆ Length() [2/2]

template<class T>
T TPoint2D< T >::Length ( void ) const
inline

Definition at line 105 of file POINT.h.

◆ Normalize() [1/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::Normalize ( void ) const
inline

Definition at line 84 of file Point.h.

◆ Normalize() [2/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::Normalize ( void ) const
inline

Definition at line 106 of file POINT.h.

◆ operator!=() [1/2]

template<class T>
bool TPoint2D< T >::operator!= ( TPoint2D< T > const & rvalue) const
inline

Definition at line 60 of file Point.h.

◆ operator!=() [2/2]

template<class T>
bool TPoint2D< T >::operator!= ( TPoint2D< T > const & rvalue) const
inline

Definition at line 82 of file POINT.h.

◆ operator*() [1/4]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator* ( T rvalue) const
inline

Definition at line 69 of file Point.h.

◆ operator*() [2/4]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator* ( T rvalue) const
inline

Definition at line 91 of file POINT.h.

◆ operator*() [3/4]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator* ( TPoint2D< T > const & rvalue) const
inline

Definition at line 75 of file Point.h.

◆ operator*() [4/4]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator* ( TPoint2D< T > const & rvalue) const
inline

Definition at line 97 of file POINT.h.

◆ operator*=() [1/2]

template<class T>
TPoint2D< T > const & TPoint2D< T >::operator*= ( T rvalue)
inline

Definition at line 70 of file Point.h.

◆ operator*=() [2/2]

template<class T>
TPoint2D< T > const & TPoint2D< T >::operator*= ( T rvalue)
inline

Definition at line 92 of file POINT.h.

◆ operator+() [1/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator+ ( TPoint2D< T > const & rvalue) const
inline

Definition at line 66 of file Point.h.

◆ operator+() [2/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator+ ( TPoint2D< T > const & rvalue) const
inline

Definition at line 88 of file POINT.h.

◆ operator+=() [1/2]

template<class T>
TPoint2D< T > const & TPoint2D< T >::operator+= ( TPoint2D< T > const & rvalue)
inline

Definition at line 63 of file Point.h.

◆ operator+=() [2/2]

template<class T>
TPoint2D< T > const & TPoint2D< T >::operator+= ( TPoint2D< T > const & rvalue)
inline

Definition at line 85 of file POINT.h.

◆ operator-() [1/4]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator- ( TPoint2D< T > const & rvalue) const
inline

Definition at line 65 of file Point.h.

◆ operator-() [2/4]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator- ( TPoint2D< T > const & rvalue) const
inline

Definition at line 87 of file POINT.h.

◆ operator-() [3/4]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator- ( void ) const
inline

Definition at line 80 of file Point.h.

◆ operator-() [4/4]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator- ( void ) const
inline

Definition at line 102 of file POINT.h.

◆ operator-=() [1/2]

template<class T>
TPoint2D< T > const & TPoint2D< T >::operator-= ( TPoint2D< T > const & rvalue)
inline

Definition at line 64 of file Point.h.

◆ operator-=() [2/2]

template<class T>
TPoint2D< T > const & TPoint2D< T >::operator-= ( TPoint2D< T > const & rvalue)
inline

Definition at line 86 of file POINT.h.

◆ operator/() [1/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator/ ( T rvalue) const
inline

Definition at line 71 of file Point.h.

◆ operator/() [2/2]

template<class T>
TPoint2D< T > const TPoint2D< T >::operator/ ( T rvalue) const
inline

Definition at line 93 of file POINT.h.

◆ operator/=() [1/2]

template<class T>
TPoint2D< T > const & TPoint2D< T >::operator/= ( T rvalue)
inline

Definition at line 72 of file Point.h.

◆ operator/=() [2/2]

template<class T>
TPoint2D< T > const & TPoint2D< T >::operator/= ( T rvalue)
inline

Definition at line 94 of file POINT.h.

◆ operator==() [1/2]

template<class T>
bool TPoint2D< T >::operator== ( TPoint2D< T > const & rvalue) const
inline

Definition at line 59 of file Point.h.

◆ operator==() [2/2]

template<class T>
bool TPoint2D< T >::operator== ( TPoint2D< T > const & rvalue) const
inline

Definition at line 81 of file POINT.h.

Member Data Documentation

◆ X

template<class T>
T TPoint2D< T >::X

Definition at line 100 of file Point.h.

◆ Y

template<class T>
T TPoint2D< T >::Y

Definition at line 101 of file Point.h.


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