vcg::Point4< T > Class Template Reference
[Space]

#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

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.

access to data is done by overloading of [] or explicit naming of coords (x,y,z,w)

T Ext (const int i) const
Toperator[] (const int i)
const Toperator[] (const int i) const
TV (const int i)
const TV (const int i) const
TV ()
T const * V () const
TW ()
TX ()
TY ()
TZ ()
Norms and normalizations

Point4HomoNormalize ()
 Homogeneous normalization (division by W).
T Norm () const
 Euclidian normal.
Point4Normalize ()
 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
Point4operator*= (const T s)
Point4 operator+ (const Point4 &p) const
Point4operator+= (const Point4 &p)
Point4 operator- () const
Point4 operator- (const Point4 &p) const
Point4operator-= (const Point4 &p)
Point4 operator/ (const T s) const
Point4operator/= (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

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]

constuctor that imports from different Point4 types

Definition at line 118 of file deprecated_point4.h.

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

Definition at line 309 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 164 of file deprecated_point4.h.

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

Homogeneous normalization (division by W).

Definition at line 252 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 235 of file deprecated_point4.h.

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

Euclidian normalization.

Definition at line 245 of file deprecated_point4.h.

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

Definition at line 266 of file deprecated_point4.h.

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

Definition at line 305 of file deprecated_point4.h.

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

Definition at line 182 of file deprecated_point4.h.

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

Definition at line 200 of file deprecated_point4.h.

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

Definition at line 174 of file deprecated_point4.h.

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

Definition at line 190 of file deprecated_point4.h.

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

Definition at line 210 of file deprecated_point4.h.

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

Definition at line 178 of file deprecated_point4.h.

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

Definition at line 195 of file deprecated_point4.h.

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

Definition at line 186 of file deprecated_point4.h.

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

Definition at line 205 of file deprecated_point4.h.

template<class T>
bool vcg::Point4< T >::operator< ( Point4< T > const &  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 284 of file deprecated_point4.h.

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

Definition at line 262 of file deprecated_point4.h.

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

Definition at line 277 of file deprecated_point4.h.

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

Definition at line 291 of file deprecated_point4.h.

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

Definition at line 135 of file deprecated_point4.h.

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

Definition at line 130 of file deprecated_point4.h.

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

Definition at line 310 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 240 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 317 of file deprecated_point4.h.

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

Definition at line 148 of file deprecated_point4.h.

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

Definition at line 144 of file deprecated_point4.h.

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

Definition at line 214 of file deprecated_point4.h.

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

Definition at line 143 of file deprecated_point4.h.

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

Definition at line 140 of file deprecated_point4.h.

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

Definition at line 141 of file deprecated_point4.h.

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

Definition at line 142 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:04 2013