Public Member Functions

FIFE::PointType3D< T > Class Template Reference

#include <point.h>

List of all members.

Public Member Functions

 PointType3D (T _x=0, T _y=0, T _z=0)
PointType3D< T > operator+ (const PointType3D< T > &p) const
PointType3D< T > operator- (const PointType3D< T > &p) const
PointType3D< T > & operator+= (const PointType3D< T > &p)
PointType3D< T > & operator-= (const PointType3D< T > &p)
PointType3D< T > operator* (const T &i) const
PointType3D< T > operator/ (const T &i) const
bool operator== (const PointType3D< T > &p) const
bool operator!= (const PointType3D< T > &p) const
length () const

Detailed Description

template<typename T>
class FIFE::PointType3D< T >

A 3D Point

This is a small helper class to aid in 3d vector arithmetics.

See also:
Rect

Definition at line 144 of file point.h.


Constructor & Destructor Documentation

template<typename T>
FIFE::PointType3D< T >::PointType3D ( _x = 0,
_y = 0,
_z = 0 
) [inline, explicit]

Constructor

Creates a with 0 as default values.

Definition at line 157 of file point.h.


Member Function Documentation

template<typename T>
T FIFE::PointType3D< T >::length (  )  const [inline]

Return length

Definition at line 216 of file point.h.

template<typename T>
bool FIFE::PointType3D< T >::operator!= ( const PointType3D< T > &  p  )  const [inline]

Equality comparision

Definition at line 210 of file point.h.

template<typename T>
PointType3D<T> FIFE::PointType3D< T >::operator* ( const T &  i  )  const [inline]

Scalar multiplication with an integer value

Definition at line 192 of file point.h.

template<typename T>
PointType3D<T> FIFE::PointType3D< T >::operator+ ( const PointType3D< T > &  p  )  const [inline]

Vector addition

Definition at line 162 of file point.h.

template<typename T>
PointType3D<T>& FIFE::PointType3D< T >::operator+= ( const PointType3D< T > &  p  )  [inline]

Vector inplace addition

Definition at line 174 of file point.h.

template<typename T>
PointType3D<T> FIFE::PointType3D< T >::operator- ( const PointType3D< T > &  p  )  const [inline]

Vector substraction

Definition at line 168 of file point.h.

template<typename T>
PointType3D<T>& FIFE::PointType3D< T >::operator-= ( const PointType3D< T > &  p  )  [inline]

Vector inplace substraction

Definition at line 183 of file point.h.

template<typename T>
PointType3D<T> FIFE::PointType3D< T >::operator/ ( const T &  i  )  const [inline]

Scalar division with an integer value

Definition at line 198 of file point.h.

template<typename T>
bool FIFE::PointType3D< T >::operator== ( const PointType3D< T > &  p  )  const [inline]

Equality comparision

Definition at line 204 of file point.h.


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