Public Member Functions | Static Public Member Functions | Public Attributes

sp::dim::point2d< T > Class Template Reference

#include <spDimensionPoint2D.hpp>

List of all members.

Public Member Functions

 point2d ()
 point2d (T Size)
 point2d (T PointX, T PointY)
 point2d (const point2d< T > &other)
 point2d (const vector3d< T > &other)
 ~point2d ()
bool operator== (const point2d< T > &other) const
bool operator!= (const point2d< T > &other) const
bool operator> (const point2d< T > &other) const
bool operator< (const point2d< T > &other) const
bool operator>= (const point2d< T > &other) const
bool operator<= (const point2d< T > &other) const
point2d< T > operator+ (const point2d< T > &other) const
point2d< T > & operator+= (const point2d< T > &other)
point2d< T > operator- (const point2d< T > &other) const
point2d< T > & operator-= (const point2d< T > &other)
point2d< T > operator/ (const point2d< T > &other) const
point2d< T > & operator/= (const point2d< T > &other)
point2d< T > operator* (const point2d< T > &other) const
point2d< T > & operator*= (const point2d< T > &other)
point2d< T > operator/ (T Size) const
point2d< T > & operator/= (T Size)
point2d< T > operator* (T Size) const
point2d< T > & operator*= (T Size)
point2d< T > operator- () const
const T operator[] (s32 i) const
T & operator[] (s32 i)
dot (const point2d< T > &other) const
getLength () const
getLengthSq () const
void make3DProjection (s32 ScreenWidth, s32 ScreenHeight)
void make3DProjectionOrigin (s32 ScreenWidth, s32 ScreenHeight)
void make3DFrustum (f32 Width, f32 Height)
point2d< T > & setAbs ()
point2d< T > getAbs () const
point2d< T > & normalize ()
void set (T NewX, T NewY)
void get (T &NewX, T &NewY) const
void setLength (T Length)
point2d< T > & getCircleCollision (f32 ThisRadius, point2d< T > &OtherPoint, f32 OtherRadius)
bool isPointInsideCircle (const point2d< T > &Center, const f32 Radius) const
getMin () const
getMax () const
template<typename B >
point2d< B > cast () const

Static Public Member Functions

static void make3DProjection (T &NewX, T &NewY, s32 ScreenWidth, s32 ScreenHeight)

Public Attributes

X
Y

template<typename T>
class sp::dim::point2d< T >


Constructor & Destructor Documentation

template<typename T>
sp::dim::point2d< T >::point2d (  )  [inline]
template<typename T>
sp::dim::point2d< T >::point2d ( Size  )  [inline]
template<typename T>
sp::dim::point2d< T >::point2d ( PointX,
PointY 
) [inline]
template<typename T>
sp::dim::point2d< T >::point2d ( const point2d< T > &  other  )  [inline]
template<typename T >
sp::dim::point2d< T >::point2d ( const vector3d< T > &  other  ) 
template<typename T>
sp::dim::point2d< T >::~point2d (  )  [inline]

Member Function Documentation

template<typename T>
template<typename B >
point2d<B> sp::dim::point2d< T >::cast (  )  const [inline]
template<typename T>
T sp::dim::point2d< T >::dot ( const point2d< T > &  other  )  const [inline]
template<typename T>
void sp::dim::point2d< T >::get ( T &  NewX,
T &  NewY 
) const [inline]
template<typename T>
point2d<T> sp::dim::point2d< T >::getAbs (  )  const [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::getCircleCollision ( f32  ThisRadius,
point2d< T > &  OtherPoint,
f32  OtherRadius 
) [inline]
template<typename T>
T sp::dim::point2d< T >::getLength (  )  const [inline]
template<typename T>
T sp::dim::point2d< T >::getLengthSq (  )  const [inline]
template<typename T>
T sp::dim::point2d< T >::getMax (  )  const [inline]
template<typename T>
T sp::dim::point2d< T >::getMin (  )  const [inline]
template<typename T>
bool sp::dim::point2d< T >::isPointInsideCircle ( const point2d< T > &  Center,
const f32  Radius 
) const [inline]
template<typename T>
void sp::dim::point2d< T >::make3DFrustum ( f32  Width,
f32  Height 
) [inline]
template<typename T>
static void sp::dim::point2d< T >::make3DProjection ( T &  NewX,
T &  NewY,
s32  ScreenWidth,
s32  ScreenHeight 
) [inline, static]
template<typename T>
void sp::dim::point2d< T >::make3DProjection ( s32  ScreenWidth,
s32  ScreenHeight 
) [inline]
template<typename T>
void sp::dim::point2d< T >::make3DProjectionOrigin ( s32  ScreenWidth,
s32  ScreenHeight 
) [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::normalize (  )  [inline]
template<typename T>
bool sp::dim::point2d< T >::operator!= ( const point2d< T > &  other  )  const [inline]
template<typename T>
point2d<T> sp::dim::point2d< T >::operator* ( Size  )  const [inline]
template<typename T>
point2d<T> sp::dim::point2d< T >::operator* ( const point2d< T > &  other  )  const [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::operator*= ( Size  )  [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::operator*= ( const point2d< T > &  other  )  [inline]
template<typename T>
point2d<T> sp::dim::point2d< T >::operator+ ( const point2d< T > &  other  )  const [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::operator+= ( const point2d< T > &  other  )  [inline]
template<typename T>
point2d<T> sp::dim::point2d< T >::operator- ( const point2d< T > &  other  )  const [inline]
template<typename T>
point2d<T> sp::dim::point2d< T >::operator- (  )  const [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::operator-= ( const point2d< T > &  other  )  [inline]
template<typename T>
point2d<T> sp::dim::point2d< T >::operator/ ( const point2d< T > &  other  )  const [inline]
template<typename T>
point2d<T> sp::dim::point2d< T >::operator/ ( Size  )  const [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::operator/= ( const point2d< T > &  other  )  [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::operator/= ( Size  )  [inline]
template<typename T>
bool sp::dim::point2d< T >::operator< ( const point2d< T > &  other  )  const [inline]
template<typename T>
bool sp::dim::point2d< T >::operator<= ( const point2d< T > &  other  )  const [inline]
template<typename T>
bool sp::dim::point2d< T >::operator== ( const point2d< T > &  other  )  const [inline]
template<typename T>
bool sp::dim::point2d< T >::operator> ( const point2d< T > &  other  )  const [inline]
template<typename T>
bool sp::dim::point2d< T >::operator>= ( const point2d< T > &  other  )  const [inline]
template<typename T>
T& sp::dim::point2d< T >::operator[] ( s32  i  )  [inline]
template<typename T>
const T sp::dim::point2d< T >::operator[] ( s32  i  )  const [inline]
template<typename T>
void sp::dim::point2d< T >::set ( NewX,
NewY 
) [inline]
template<typename T>
point2d<T>& sp::dim::point2d< T >::setAbs (  )  [inline]
template<typename T>
void sp::dim::point2d< T >::setLength ( Length  )  [inline]

Member Data Documentation

template<typename T>
T sp::dim::point2d< T >::X
template<typename T>
T sp::dim::point2d< T >::Y

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines