#include <deprecated_point4.h>
Public Types | |
enum | { Dimension = 4 } |
typedef T | ScalarType |
Public Member Functions | |
Dot products | |
T | dot (const Point4 &p) const |
T | operator* (const Point4 &p) const |
Point4 | operator^ (const Point4 &p) const |
T | StableDot (const Point4< T > &p) const |
slower version, more stable (double precision only) | |
Data Access. | |
T | Ext (const int i) const |
T & | operator[] (const int i) |
const T & | operator[] (const int i) const |
T & | V (const int i) |
const T & | V (const int i) const |
T * | V () |
T const * | V () const |
T & | W () |
T & | X () |
T & | Y () |
T & | Z () |
Norms and normalizations | |
Point4 & | HomoNormalize () |
Homogeneous normalization (division by W). | |
T | Norm () const |
Euclidian normal. | |
Point4 & | Normalize () |
Euclidian normalization. | |
T | SquaredNorm () const |
Squared euclidian normal. | |
Comparison operators (lexicographical order) | |
bool | operator!= (const Point4 &p) const |
bool | operator< (Point4 const &p) const |
bool | operator<= (const Point4 &p) const |
bool | operator== (const Point4 &p) const |
bool | operator> (const Point4 &p) const |
bool | operator>= (const Point4 &p) const |
Linear operators and the likes | |
Point4 | operator* (const T s) const |
Point4 & | operator*= (const T s) |
Point4 | operator+ (const Point4 &p) const |
Point4 & | operator+= (const Point4 &p) |
Point4 | operator- () const |
Point4 | operator- (const Point4 &p) const |
Point4 & | operator-= (const Point4 &p) |
Point4 | operator/ (const T s) const |
Point4 & | operator/= (const T s) |
Point4 | VectProd (const Point4 &x, const Point4 &z) const |
Public Attributes | |
T | _v [4] |
The only data member. Hidden to user. | |
Standard Constructors and Initializers | |
No casting operators have been introduced to avoid automatic unattended (and costly) conversion between different point types | |
template<class Q > | |
void | Import (const Point4< Q > &b) |
importer from different Point4 types | |
Point4 (const Point4 &p) | |
Point4 (const T p[4]) | |
Point4 (const T nx, const T ny, const T nz, const T nw) | |
Point4 () | |
void | SetZero () |
template<class Q > | |
static Point4 | Construct (const Point4< Q > &b) |
constuctor that imports from different Point4 types |
The templated class for representing a point in 4D space. The class is templated over the ScalarType class that is used to represent coordinates. All the usual operator (* + - ...) are defined.
Definition at line 75 of file deprecated_point4.h.
typedef T vcg::Point4< T >::ScalarType |
Definition at line 82 of file deprecated_point4.h.
anonymous enum |
Definition at line 83 of file deprecated_point4.h.
vcg::Point4< T >::Point4 | ( | ) | [inline] |
Definition at line 91 of file deprecated_point4.h.
vcg::Point4< T >::Point4 | ( | const T | nx, | |
const T | ny, | |||
const T | nz, | |||
const T | nw | |||
) | [inline] |
Definition at line 92 of file deprecated_point4.h.
vcg::Point4< T >::Point4 | ( | const T | p[4] | ) | [inline] |
Definition at line 96 of file deprecated_point4.h.
vcg::Point4< T >::Point4 | ( | const Point4< T > & | p | ) | [inline] |
Definition at line 100 of file deprecated_point4.h.
static Point4 vcg::Point4< T >::Construct | ( | const Point4< Q > & | b | ) | [inline, static] |
constuctor that imports from different Point4 types
Definition at line 118 of file deprecated_point4.h.
T vcg::Point4< T >::dot | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 309 of file deprecated_point4.h.
T vcg::Point4< T >::Ext | ( | const int | i | ) | const [inline] |
Padding function: give a default 0 value to all the elements that are not in the [0..2] range. Useful for managing in a consistent way object that could have point2 / point3 / point4
Definition at line 164 of file deprecated_point4.h.
Point4& vcg::Point4< T >::HomoNormalize | ( | ) | [inline] |
Homogeneous normalization (division by W).
Definition at line 252 of file deprecated_point4.h.
void vcg::Point4< T >::Import | ( | const Point4< Q > & | b | ) | [inline] |
importer from different Point4 types
Reimplemented in vcg::Color4< T >, and vcg::Color4< unsigned char >.
Definition at line 110 of file deprecated_point4.h.
T vcg::Point4< T >::Norm | ( | void | ) | const [inline] |
Euclidian normal.
Definition at line 235 of file deprecated_point4.h.
Point4& vcg::Point4< T >::Normalize | ( | void | ) | [inline] |
Euclidian normalization.
Definition at line 245 of file deprecated_point4.h.
bool vcg::Point4< T >::operator!= | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 266 of file deprecated_point4.h.
T vcg::Point4< T >::operator* | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 305 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator* | ( | const T | s | ) | const [inline] |
Definition at line 182 of file deprecated_point4.h.
Point4& vcg::Point4< T >::operator*= | ( | const T | s | ) | [inline] |
Definition at line 200 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator+ | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 174 of file deprecated_point4.h.
Point4& vcg::Point4< T >::operator+= | ( | const Point4< T > & | p | ) | [inline] |
Definition at line 190 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator- | ( | ) | const [inline] |
Definition at line 210 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator- | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 178 of file deprecated_point4.h.
Point4& vcg::Point4< T >::operator-= | ( | const Point4< T > & | p | ) | [inline] |
Definition at line 195 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator/ | ( | const T | s | ) | const [inline] |
Definition at line 186 of file deprecated_point4.h.
Point4& vcg::Point4< T >::operator/= | ( | const T | s | ) | [inline] |
Definition at line 205 of file deprecated_point4.h.
bool vcg::Point4< T >::operator< | ( | Point4< T > const & | p | ) | const [inline] |
Definition at line 270 of file deprecated_point4.h.
bool vcg::Point4< T >::operator<= | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 284 of file deprecated_point4.h.
bool vcg::Point4< T >::operator== | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 262 of file deprecated_point4.h.
bool vcg::Point4< T >::operator> | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 277 of file deprecated_point4.h.
bool vcg::Point4< T >::operator>= | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 291 of file deprecated_point4.h.
T& vcg::Point4< T >::operator[] | ( | const int | i | ) | [inline] |
Definition at line 135 of file deprecated_point4.h.
const T& vcg::Point4< T >::operator[] | ( | const int | i | ) | const [inline] |
Definition at line 130 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator^ | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 310 of file deprecated_point4.h.
void vcg::Point4< T >::SetZero | ( | ) | [inline] |
Definition at line 104 of file deprecated_point4.h.
T vcg::Point4< T >::SquaredNorm | ( | void | ) | const [inline] |
Squared euclidian normal.
Definition at line 240 of file deprecated_point4.h.
T vcg::Point4< T >::StableDot | ( | const Point4< T > & | p | ) | const [inline] |
slower version, more stable (double precision only)
Definition at line 317 of file deprecated_point4.h.
T& vcg::Point4< T >::V | ( | const int | i | ) | [inline] |
Reimplemented in vcg::Quaternion< S >, vcg::Quaternion< double >, and vcg::Quaternion< float >.
Definition at line 157 of file deprecated_point4.h.
const T& vcg::Point4< T >::V | ( | const int | i | ) | const [inline] |
Reimplemented in vcg::Quaternion< S >, vcg::Quaternion< double >, and vcg::Quaternion< float >.
Definition at line 152 of file deprecated_point4.h.
T* vcg::Point4< T >::V | ( | ) | [inline] |
Definition at line 148 of file deprecated_point4.h.
T const* vcg::Point4< T >::V | ( | ) | const [inline] |
Definition at line 144 of file deprecated_point4.h.
Point4 vcg::Point4< T >::VectProd | ( | const Point4< T > & | x, | |
const Point4< T > & | z | |||
) | const [inline] |
Definition at line 214 of file deprecated_point4.h.
T& vcg::Point4< T >::W | ( | ) | [inline] |
Definition at line 143 of file deprecated_point4.h.
T& vcg::Point4< T >::X | ( | ) | [inline] |
Definition at line 140 of file deprecated_point4.h.
T& vcg::Point4< T >::Y | ( | ) | [inline] |
Definition at line 141 of file deprecated_point4.h.
T& vcg::Point4< T >::Z | ( | ) | [inline] |
Definition at line 142 of file deprecated_point4.h.
T vcg::Point4< T >::_v[4] |
The only data member. Hidden to user.
Definition at line 79 of file deprecated_point4.h.