#include <deprecated_point4.h>
Public Types | |
enum | { Dimension = 4 } |
typedef T | ScalarType |
Public Member Functions | |
Data Access. | |
access to data is done by overloading of [] or explicit naming of coords (x,y,z,w) | |
const T & | operator[] (const int i) const |
T & | operator[] (const int i) |
T & | X () |
T & | Y () |
T & | Z () |
T & | W () |
T const * | V () const |
T * | V () |
const T & | V (const int i) const |
T & | V (const int i) |
T | Ext (const int i) const |
Linear operators and the likes | |
Point4 | operator+ (const Point4 &p) const |
Point4 | operator- (const Point4 &p) const |
Point4 | operator* (const T s) const |
Point4 | operator/ (const T s) const |
Point4 & | operator+= (const Point4 &p) |
Point4 & | operator-= (const Point4 &p) |
Point4 & | operator*= (const T s) |
Point4 & | operator/= (const T s) |
Point4 | operator- () const |
Point4 | VectProd (const Point4 &x, const Point4 &z) const |
Norms and normalizations | |
T | Norm () const |
Euclidian normal. | |
T | SquaredNorm () const |
Squared euclidian normal. | |
Point4 & | Normalize () |
Euclidian normalization. | |
Point4 & | HomoNormalize () |
Homogeneous normalization (division by W) | |
Comparison operators (lexicographical order) | |
bool | operator== (const Point4 &p) const |
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 |
Dot products | |
T | operator* (const Point4 &p) const |
T | dot (const Point4 &p) const |
Point4 | operator^ (const Point4 &) const |
T | StableDot (const Point4< T > &p) const |
slower version, more stable (double precision only) | |
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 | |
Point4 () | |
Point4 (const T nx, const T ny, const T nz, const T nw) | |
Point4 (const T p[4]) | |
Point4 (const Point4 &p) | |
void | SetZero () |
template<class Q > | |
void | Import (const Point4< Q > &b) |
importer from different Point4 types | |
template<class EigenVector > | |
void | FromEigenVector (const EigenVector &b) |
template<class Q > | |
static Point4 | Construct (const Point4< Q > &b) |
constructor 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] |
constructor that imports from different Point4 types
Definition at line 126 of file deprecated_point4.h.
Definition at line 317 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 172 of file deprecated_point4.h.
void vcg::Point4< T >::FromEigenVector | ( | const EigenVector & | b | ) | [inline] |
Definition at line 117 of file deprecated_point4.h.
Point4& vcg::Point4< T >::HomoNormalize | ( | ) | [inline] |
Homogeneous normalization (division by W)
Definition at line 260 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 243 of file deprecated_point4.h.
Point4& vcg::Point4< T >::Normalize | ( | void | ) | [inline] |
Euclidian normalization.
Definition at line 253 of file deprecated_point4.h.
bool vcg::Point4< T >::operator!= | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 274 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator* | ( | const T | s | ) | const [inline] |
Definition at line 190 of file deprecated_point4.h.
T vcg::Point4< T >::operator* | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 313 of file deprecated_point4.h.
Point4& vcg::Point4< T >::operator*= | ( | const T | s | ) | [inline] |
Definition at line 208 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator+ | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 182 of file deprecated_point4.h.
Point4& vcg::Point4< T >::operator+= | ( | const Point4< T > & | p | ) | [inline] |
Definition at line 198 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator- | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 186 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator- | ( | ) | const [inline] |
Definition at line 218 of file deprecated_point4.h.
Point4& vcg::Point4< T >::operator-= | ( | const Point4< T > & | p | ) | [inline] |
Definition at line 203 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator/ | ( | const T | s | ) | const [inline] |
Definition at line 194 of file deprecated_point4.h.
Point4& vcg::Point4< T >::operator/= | ( | const T | s | ) | [inline] |
Definition at line 213 of file deprecated_point4.h.
bool vcg::Point4< T >::operator< | ( | Point4< T > const & | p | ) | const [inline] |
Definition at line 278 of file deprecated_point4.h.
bool vcg::Point4< T >::operator<= | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 292 of file deprecated_point4.h.
bool vcg::Point4< T >::operator== | ( | const Point4< T > & | 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 285 of file deprecated_point4.h.
bool vcg::Point4< T >::operator>= | ( | const Point4< T > & | p | ) | const [inline] |
Definition at line 299 of file deprecated_point4.h.
const T& vcg::Point4< T >::operator[] | ( | const int | i | ) | const [inline] |
Definition at line 138 of file deprecated_point4.h.
T& vcg::Point4< T >::operator[] | ( | const int | i | ) | [inline] |
Definition at line 143 of file deprecated_point4.h.
Point4 vcg::Point4< T >::operator^ | ( | const Point4< T > & | ) | const [inline] |
Definition at line 318 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 248 of file deprecated_point4.h.
slower version, more stable (double precision only)
Definition at line 325 of file deprecated_point4.h.
T const* vcg::Point4< T >::V | ( | ) | const [inline] |
Definition at line 152 of file deprecated_point4.h.
T* vcg::Point4< T >::V | ( | ) | [inline] |
Definition at line 156 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 160 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 165 of file deprecated_point4.h.
Point4 vcg::Point4< T >::VectProd | ( | const Point4< T > & | x, |
const Point4< T > & | z | ||
) | const [inline] |
Definition at line 222 of file deprecated_point4.h.
T& vcg::Point4< T >::W | ( | ) | [inline] |
Definition at line 151 of file deprecated_point4.h.
T& vcg::Point4< T >::X | ( | ) | [inline] |
Definition at line 148 of file deprecated_point4.h.
T& vcg::Point4< T >::Y | ( | ) | [inline] |
Definition at line 149 of file deprecated_point4.h.
T& vcg::Point4< T >::Z | ( | ) | [inline] |
Definition at line 150 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.