Public Types | Public Attributes
vcg::Point4< T > Class Template Reference

#include <deprecated_point4.h>

Inheritance diagram for vcg::Point4< T >:
Inheritance graph
[legend]

List of all members.

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 Toperator[] (const int i) const
Toperator[] (const int i)
TX ()
TY ()
TZ ()
TW ()
T const * V () const
TV ()
const TV (const int i) const
TV (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
Point4operator+= (const Point4 &p)
Point4operator-= (const Point4 &p)
Point4operator*= (const T s)
Point4operator/= (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.
Point4Normalize ()
 Euclidian normalization.
Point4HomoNormalize ()
 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

Detailed Description

template<class T>
class vcg::Point4< T >

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.


Member Typedef Documentation

template<class T>
typedef T vcg::Point4< T >::ScalarType

Definition at line 82 of file deprecated_point4.h.


Member Enumeration Documentation

template<class T>
anonymous enum
Enumerator:
Dimension 

Definition at line 83 of file deprecated_point4.h.


Constructor & Destructor Documentation

template<class T>
vcg::Point4< T >::Point4 ( ) [inline]

Definition at line 91 of file deprecated_point4.h.

template<class T>
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.

template<class T>
vcg::Point4< T >::Point4 ( const T  p[4]) [inline]

Definition at line 96 of file deprecated_point4.h.

template<class T>
vcg::Point4< T >::Point4 ( const Point4< T > &  p) [inline]

Definition at line 100 of file deprecated_point4.h.


Member Function Documentation

template<class T>
template<class Q >
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.

template<class T>
T vcg::Point4< T >::dot ( const Point4< T > &  p) const [inline]

Definition at line 317 of file deprecated_point4.h.

template<class T>
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.

template<class T>
template<class EigenVector >
void vcg::Point4< T >::FromEigenVector ( const EigenVector &  b) [inline]

Definition at line 117 of file deprecated_point4.h.

template<class T>
Point4& vcg::Point4< T >::HomoNormalize ( ) [inline]

Homogeneous normalization (division by W)

Definition at line 260 of file deprecated_point4.h.

template<class T>
template<class Q >
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.

template<class T>
T vcg::Point4< T >::Norm ( void  ) const [inline]

Euclidian normal.

Definition at line 243 of file deprecated_point4.h.

template<class T>
Point4& vcg::Point4< T >::Normalize ( void  ) [inline]

Euclidian normalization.

Definition at line 253 of file deprecated_point4.h.

template<class T>
bool vcg::Point4< T >::operator!= ( const Point4< T > &  p) const [inline]

Definition at line 274 of file deprecated_point4.h.

template<class T>
Point4 vcg::Point4< T >::operator* ( const T  s) const [inline]

Definition at line 190 of file deprecated_point4.h.

template<class T>
T vcg::Point4< T >::operator* ( const Point4< T > &  p) const [inline]

Definition at line 313 of file deprecated_point4.h.

template<class T>
Point4& vcg::Point4< T >::operator*= ( const T  s) [inline]

Definition at line 208 of file deprecated_point4.h.

template<class T>
Point4 vcg::Point4< T >::operator+ ( const Point4< T > &  p) const [inline]

Definition at line 182 of file deprecated_point4.h.

template<class T>
Point4& vcg::Point4< T >::operator+= ( const Point4< T > &  p) [inline]

Definition at line 198 of file deprecated_point4.h.

template<class T>
Point4 vcg::Point4< T >::operator- ( const Point4< T > &  p) const [inline]

Definition at line 186 of file deprecated_point4.h.

template<class T>
Point4 vcg::Point4< T >::operator- ( ) const [inline]

Definition at line 218 of file deprecated_point4.h.

template<class T>
Point4& vcg::Point4< T >::operator-= ( const Point4< T > &  p) [inline]

Definition at line 203 of file deprecated_point4.h.

template<class T>
Point4 vcg::Point4< T >::operator/ ( const T  s) const [inline]

Definition at line 194 of file deprecated_point4.h.

template<class T>
Point4& vcg::Point4< T >::operator/= ( const T  s) [inline]

Definition at line 213 of file deprecated_point4.h.

template<class T>
bool vcg::Point4< T >::operator< ( Point4< T > const &  p) const [inline]

Definition at line 278 of file deprecated_point4.h.

template<class T>
bool vcg::Point4< T >::operator<= ( const Point4< T > &  p) const [inline]

Definition at line 292 of file deprecated_point4.h.

template<class T>
bool vcg::Point4< T >::operator== ( const Point4< T > &  p) const [inline]

Definition at line 270 of file deprecated_point4.h.

template<class T>
bool vcg::Point4< T >::operator> ( const Point4< T > &  p) const [inline]

Definition at line 285 of file deprecated_point4.h.

template<class T>
bool vcg::Point4< T >::operator>= ( const Point4< T > &  p) const [inline]

Definition at line 299 of file deprecated_point4.h.

template<class T>
const T& vcg::Point4< T >::operator[] ( const int  i) const [inline]

Definition at line 138 of file deprecated_point4.h.

template<class T>
T& vcg::Point4< T >::operator[] ( const int  i) [inline]

Definition at line 143 of file deprecated_point4.h.

template<class T>
Point4 vcg::Point4< T >::operator^ ( const Point4< T > &  ) const [inline]

Definition at line 318 of file deprecated_point4.h.

template<class T>
void vcg::Point4< T >::SetZero ( ) [inline]

Definition at line 104 of file deprecated_point4.h.

template<class T>
T vcg::Point4< T >::SquaredNorm ( void  ) const [inline]

Squared euclidian normal.

Definition at line 248 of file deprecated_point4.h.

template<class T>
T vcg::Point4< T >::StableDot ( const Point4< T > &  p) const [inline]

slower version, more stable (double precision only)

Definition at line 325 of file deprecated_point4.h.

template<class T>
T const* vcg::Point4< T >::V ( ) const [inline]

Definition at line 152 of file deprecated_point4.h.

template<class T>
T* vcg::Point4< T >::V ( ) [inline]

Definition at line 156 of file deprecated_point4.h.

template<class T>
const T& vcg::Point4< T >::V ( const int  i) const [inline]
template<class T>
T& vcg::Point4< T >::V ( const int  i) [inline]
template<class T>
Point4 vcg::Point4< T >::VectProd ( const Point4< T > &  x,
const Point4< T > &  z 
) const [inline]

Definition at line 222 of file deprecated_point4.h.

template<class T>
T& vcg::Point4< T >::W ( ) [inline]

Definition at line 151 of file deprecated_point4.h.

template<class T>
T& vcg::Point4< T >::X ( ) [inline]

Definition at line 148 of file deprecated_point4.h.

template<class T>
T& vcg::Point4< T >::Y ( ) [inline]

Definition at line 149 of file deprecated_point4.h.

template<class T>
T& vcg::Point4< T >::Z ( ) [inline]

Definition at line 150 of file deprecated_point4.h.


Member Data Documentation

template<class T>
T vcg::Point4< T >::_v[4]

The only data member. Hidden to user.

Definition at line 79 of file deprecated_point4.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:20