PF_API 0.52
|
#include <MPoint.h>
Public Member Functions | |
Point (const T &x_=0, const T &y_=0, const T &z_=0) | |
Point (const Point< T > &p_) | |
Point (const T &x_=0, const T &y_=0, const T &z_=0) | |
Point (const Point< T > &p_) | |
Accessors | |
unsigned char | getNumDimensions () const |
T & | x () |
T & | y () |
T & | z () |
T & | r () |
T & | g () |
T & | b () |
T & | a () |
T & | operator[] (int i_) |
const T & | x () const |
const T & | y () const |
const T & | z () const |
const T & | r () const |
const T & | g () const |
const T & | b () const |
const T & | a () const |
const T & | operator[] (int i_) const |
unsigned char | getNumDimensions () const |
T & | x () |
T & | y () |
T & | z () |
T & | r () |
T & | g () |
T & | b () |
T & | a () |
T & | operator[] (int i_) |
const T & | x () const |
const T & | y () const |
const T & | z () const |
const T & | r () const |
const T & | g () const |
const T & | b () const |
const T & | a () const |
const T & | operator[] (int i_) const |
Unary Operations | |
Point< T > | operator- () const |
Point< T > | getAbs () const |
T | getComponentSum () const |
T | getMax () const |
T | getMin () const |
T | getLenSqrd () const |
T | getLength () const |
void | normalize () |
Point< T > | operator- () const |
Point< T > | getAbs () const |
T | getComponentSum () const |
T | getMax () const |
T | getMin () const |
T | getLenSqrd () const |
T | getLength () const |
void | normalize () |
Binary Operators | |
bool | equals (const Point< T > &rhs_, T radiusSqrd_) const |
Point< T, U > & | operator= (const Point< T, U > &rhs_) |
Point< T > & | operator+= (const Point< T > &rhs_) |
Point< T > & | operator+= (const T &rhs_) |
Point< T > & | operator-= (const Point< T > &rhs_) |
Point< T > & | operator-= (const T &rhs_) |
Point< T > & | operator*= (const T &rhs_) |
Point< T > | getCross3 (const Point< T > &rhs_) const |
T | getDot3 (const Point< T > &rhs_) const |
Point< T > | getReflection3 (const Point< T > &n_) const |
bool | equals (const Point< T > &rhs_, T radiusSqrd_) const |
Point< T, U > & | operator= (const Point< T, U > &rhs_) |
Point< T > & | operator+= (const Point< T > &rhs_) |
Point< T > & | operator+= (const T &rhs_) |
Point< T > & | operator-= (const Point< T > &rhs_) |
Point< T > & | operator-= (const T &rhs_) |
Point< T > & | operator*= (const T &rhs_) |
Point< T > | getCross3 (const Point< T > &rhs_) const |
T | getDot3 (const Point< T > &rhs_) const |
Point< T > | getReflection3 (const Point< T > &n_) const |
Public Attributes | |
T | _dimensions [U] |
A templated, multi-dimensional point class.
OpenSkyNet::Math::Point< T, U >::Point | ( | const T & | x_ = 0 , |
const T & | y_ = 0 , |
||
const T & | z_ = 0 |
||
) | [inline] |
OpenSkyNet::Math::Point< T, U >::Point | ( | const Point< T > & | p_ | ) | [inline] |
OpenSkyNet::Math::Point< T, U >::Point | ( | const T & | x_ = 0 , |
const T & | y_ = 0 , |
||
const T & | z_ = 0 |
||
) | [inline] |
OpenSkyNet::Math::Point< T, U >::Point | ( | const Point< T > & | p_ | ) | [inline] |
T& OpenSkyNet::Math::Point< T, U >::a | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::a | ( | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::a | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::a | ( | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::b | ( | ) | [inline] |
T& OpenSkyNet::Math::Point< T, U >::b | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::b | ( | ) | const [inline] |
const T& OpenSkyNet::Math::Point< T, U >::b | ( | ) | const [inline] |
bool OpenSkyNet::Math::Point< T, U >::equals | ( | const Point< T > & | rhs_, |
T | radiusSqrd_ | ||
) | const [inline] |
Equality test within an epsilon value.
bool OpenSkyNet::Math::Point< T, U >::equals | ( | const Point< T > & | rhs_, |
T | radiusSqrd_ | ||
) | const [inline] |
Equality test within an epsilon value.
T& OpenSkyNet::Math::Point< T, U >::g | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::g | ( | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::g | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::g | ( | ) | const [inline] |
Point<T> OpenSkyNet::Math::Point< T, U >::getAbs | ( | ) | const [inline] |
Absolute values of components
Point<T> OpenSkyNet::Math::Point< T, U >::getAbs | ( | ) | const [inline] |
Absolute values of components
T OpenSkyNet::Math::Point< T, U >::getComponentSum | ( | ) | const [inline] |
Summation of components
T OpenSkyNet::Math::Point< T, U >::getComponentSum | ( | ) | const [inline] |
Summation of components
Point<T> OpenSkyNet::Math::Point< T, U >::getCross3 | ( | const Point< T > & | rhs_ | ) | const [inline] |
3D Cross Product
Point<T> OpenSkyNet::Math::Point< T, U >::getCross3 | ( | const Point< T > & | rhs_ | ) | const [inline] |
3D Cross Product
T OpenSkyNet::Math::Point< T, U >::getDot3 | ( | const Point< T > & | rhs_ | ) | const [inline] |
3D Dot Product
T OpenSkyNet::Math::Point< T, U >::getDot3 | ( | const Point< T > & | rhs_ | ) | const [inline] |
3D Dot Product
T OpenSkyNet::Math::Point< T, U >::getLength | ( | ) | const [inline] |
Length
T OpenSkyNet::Math::Point< T, U >::getLength | ( | ) | const [inline] |
Length
T OpenSkyNet::Math::Point< T, U >::getLenSqrd | ( | ) | const [inline] |
Length Squared
T OpenSkyNet::Math::Point< T, U >::getLenSqrd | ( | ) | const [inline] |
Length Squared
T OpenSkyNet::Math::Point< T, U >::getMax | ( | ) | const [inline] |
Maximum of components
T OpenSkyNet::Math::Point< T, U >::getMax | ( | ) | const [inline] |
Maximum of components
T OpenSkyNet::Math::Point< T, U >::getMin | ( | ) | const [inline] |
Minimum of components
T OpenSkyNet::Math::Point< T, U >::getMin | ( | ) | const [inline] |
Minimum of components
unsigned char OpenSkyNet::Math::Point< T, U >::getNumDimensions | ( | ) | const [inline] |
unsigned char OpenSkyNet::Math::Point< T, U >::getNumDimensions | ( | ) | const [inline] |
Point<T> OpenSkyNet::Math::Point< T, U >::getReflection3 | ( | const Point< T > & | n_ | ) | const [inline] |
3D Reflection
Point<T> OpenSkyNet::Math::Point< T, U >::getReflection3 | ( | const Point< T > & | n_ | ) | const [inline] |
3D Reflection
void OpenSkyNet::Math::Point< T, U >::normalize | ( | ) | [inline] |
Normalization
void OpenSkyNet::Math::Point< T, U >::normalize | ( | ) | [inline] |
Normalization
Point<T>& OpenSkyNet::Math::Point< T, U >::operator*= | ( | const T & | rhs_ | ) | [inline] |
Multiplication of all axes by a scalar, then assignment
Point<T>& OpenSkyNet::Math::Point< T, U >::operator*= | ( | const T & | rhs_ | ) | [inline] |
Multiplication of all axes by a scalar, then assignment
Point<T>& OpenSkyNet::Math::Point< T, U >::operator+= | ( | const T & | rhs_ | ) | [inline] |
Addition of all axes by a scalar, then assignment
Point<T>& OpenSkyNet::Math::Point< T, U >::operator+= | ( | const Point< T > & | rhs_ | ) | [inline] |
Addition, then assignment
Point<T>& OpenSkyNet::Math::Point< T, U >::operator+= | ( | const T & | rhs_ | ) | [inline] |
Addition of all axes by a scalar, then assignment
Point<T>& OpenSkyNet::Math::Point< T, U >::operator+= | ( | const Point< T > & | rhs_ | ) | [inline] |
Addition, then assignment
Point<T> OpenSkyNet::Math::Point< T, U >::operator- | ( | ) | const [inline] |
Negation
Point<T> OpenSkyNet::Math::Point< T, U >::operator- | ( | ) | const [inline] |
Negation
Point<T>& OpenSkyNet::Math::Point< T, U >::operator-= | ( | const T & | rhs_ | ) | [inline] |
Subtraction of all axes by a scalar, then assignment
Point<T>& OpenSkyNet::Math::Point< T, U >::operator-= | ( | const T & | rhs_ | ) | [inline] |
Subtraction of all axes by a scalar, then assignment
Point<T>& OpenSkyNet::Math::Point< T, U >::operator-= | ( | const Point< T > & | rhs_ | ) | [inline] |
Subtraction, then assignment
Point<T>& OpenSkyNet::Math::Point< T, U >::operator-= | ( | const Point< T > & | rhs_ | ) | [inline] |
Subtraction, then assignment
Point<T,U>& OpenSkyNet::Math::Point< T, U >::operator= | ( | const Point< T, U > & | rhs_ | ) | [inline] |
Assignment
Point<T,U>& OpenSkyNet::Math::Point< T, U >::operator= | ( | const Point< T, U > & | rhs_ | ) | [inline] |
Assignment
const T& OpenSkyNet::Math::Point< T, U >::operator[] | ( | int | i_ | ) | const [inline] |
const T& OpenSkyNet::Math::Point< T, U >::operator[] | ( | int | i_ | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::operator[] | ( | int | i_ | ) | [inline] |
T& OpenSkyNet::Math::Point< T, U >::operator[] | ( | int | i_ | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::r | ( | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::r | ( | ) | [inline] |
T& OpenSkyNet::Math::Point< T, U >::r | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::r | ( | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::x | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::x | ( | ) | const [inline] |
const T& OpenSkyNet::Math::Point< T, U >::x | ( | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::x | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::y | ( | ) | const [inline] |
const T& OpenSkyNet::Math::Point< T, U >::y | ( | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::y | ( | ) | [inline] |
T& OpenSkyNet::Math::Point< T, U >::y | ( | ) | [inline] |
T& OpenSkyNet::Math::Point< T, U >::z | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::z | ( | ) | const [inline] |
T& OpenSkyNet::Math::Point< T, U >::z | ( | ) | [inline] |
const T& OpenSkyNet::Math::Point< T, U >::z | ( | ) | const [inline] |
T OpenSkyNet::Math::Point< T, U >::_dimensions |