FIFE 2008.0
FIFE::PointType3D< T > Class Template Reference

#include <point.h>

Inheritance diagram for FIFE::PointType3D< T >:

List of all members.

Public Member Functions

 PointType3D (T _x=0, T _y=0, T _z=0)
 PointType3D (const PointType3D< T > &rhs)
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
void normalize ()

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 195 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 208 of file point.h.

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

Copy Constructor

Definition at line 213 of file point.h.


Member Function Documentation

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

Return length

Definition at line 272 of file point.h.

Referenced by FIFE::PointType3D< double >::normalize().

Here is the caller graph for this function:

template<typename T>
void FIFE::PointType3D< T >::normalize ( ) [inline]

Normalizes the point

Definition at line 280 of file point.h.

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

Equality comparision

Definition at line 266 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 248 of file point.h.

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

Vector addition

Definition at line 218 of file point.h.

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

Vector inplace addition

Definition at line 230 of file point.h.

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

Vector substraction

Definition at line 224 of file point.h.

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

Vector inplace substraction

Definition at line 239 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 254 of file point.h.

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

Equality comparision

Definition at line 260 of file point.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator