vcg::Point3< P3ScalarType > Class Template Reference
[Space]

#include <deprecated_point3.h>

List of all members.

Public Types

enum  { Dimension = 3 }
typedef P3ScalarType ScalarType

Public Member Functions

Classical overloading of operators

Note

P3ScalarType dot (const Point3 &p) const
void FromPolarRad (const P3ScalarType &ro, const P3ScalarType &theta, const P3ScalarType &phi)
Box3< P3ScalarType > GetBBox (Box3< P3ScalarType > &bb) const
P3ScalarType Norm () const
Point3Normalize ()
Point3normalized ()
P3ScalarType operator* (Point3 const &p) const
 Dot product.
Point3 operator* (const P3ScalarType s) const
Point3operator*= (const P3ScalarType s)
Point3 operator+ (Point3 const &p) const
Point3operator+= (Point3 const &p)
Point3 operator- (Point3 const &p) const
Point3operator-= (Point3 const &p)
Point3 operator/ (const P3ScalarType s) const
Point3operator/= (const P3ScalarType s)
Point3 operator^ (Point3 const &p) const
 Cross product.
Point3Scale (const Point3 &p)
Point3Scale (const P3ScalarType sx, const P3ScalarType sy, const P3ScalarType sz)
P3ScalarType SquaredNorm () const
void ToPolarRad (P3ScalarType &ro, P3ScalarType &theta, P3ScalarType &phi) const
Comparison Operators.

Note that the reverse z prioritized ordering, useful in many situations.

bool operator!= (Point3 const &p) const
Point3 operator- () const
bool operator< (Point3 const &p) const
bool operator<= (Point3 const &p) const
bool operator== (Point3 const &p) const
bool operator> (Point3 const &p) const
bool operator>= (Point3 const &p) const
Data Access.

const P3ScalarType & operator[] (const int i) const
P3ScalarType & operator[] (const int i)
const P3ScalarType & V (const int i) const
P3ScalarType & V (const int i)
P3ScalarType * V ()
const P3ScalarType * V () const
P3ScalarType & X ()
const P3ScalarType & X () const
P3ScalarType & Y ()
const P3ScalarType & Y () const
P3ScalarType & Z ()
const P3ScalarType & Z () const

Protected Attributes

P3ScalarType _v [3]
 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



P3ScalarType Ext (const int i) const
template<class Q >
void Import (const Point3< Q > &b)
Point3operator= (Point3 const &p)
 Point3 (const P3ScalarType nv[3])
 Point3 (Point3 const &p)
 Point3 (const P3ScalarType nx, const P3ScalarType ny, const P3ScalarType nz)
 Point3 ()
void SetZero ()
static Point3 Construct (const Point3< ScalarType > &b)
template<class Q >
static Point3 Construct (const Q &P0, const Q &P1, const Q &P2)
template<class Q >
static Point3 Construct (const Point3< Q > &b)

Detailed Description

template<class P3ScalarType>
class vcg::Point3< P3ScalarType >

Definition at line 111 of file deprecated_point3.h.


Member Typedef Documentation

template<class P3ScalarType>
typedef P3ScalarType vcg::Point3< P3ScalarType >::ScalarType

Definition at line 118 of file deprecated_point3.h.


Member Enumeration Documentation

template<class P3ScalarType>
anonymous enum
Enumerator:
Dimension 

Definition at line 119 of file deprecated_point3.h.


Constructor & Destructor Documentation

template<class P3ScalarType>
vcg::Point3< P3ScalarType >::Point3 (  )  [inline]

Definition at line 128 of file deprecated_point3.h.

template<class P3ScalarType>
vcg::Point3< P3ScalarType >::Point3 ( const P3ScalarType  nx,
const P3ScalarType  ny,
const P3ScalarType  nz 
) [inline]

Definition at line 129 of file deprecated_point3.h.

template<class P3ScalarType>
vcg::Point3< P3ScalarType >::Point3 ( Point3< P3ScalarType > const &  p  )  [inline]

Definition at line 135 of file deprecated_point3.h.

template<class P3ScalarType>
vcg::Point3< P3ScalarType >::Point3 ( const P3ScalarType  nv[3]  )  [inline]

Definition at line 141 of file deprecated_point3.h.


Member Function Documentation

template<class P3ScalarType>
static Point3 vcg::Point3< P3ScalarType >::Construct ( const Point3< ScalarType > &  b  )  [inline, static]

Definition at line 187 of file deprecated_point3.h.

template<class P3ScalarType>
template<class Q >
static Point3 vcg::Point3< P3ScalarType >::Construct ( const Q P0,
const Q P1,
const Q P2 
) [inline, static]

Definition at line 182 of file deprecated_point3.h.

template<class P3ScalarType>
template<class Q >
static Point3 vcg::Point3< P3ScalarType >::Construct ( const Point3< Q > &  b  )  [inline, static]

Definition at line 176 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType vcg::Point3< P3ScalarType >::dot ( const Point3< P3ScalarType > &  p  )  const [inline]

Definition at line 261 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType vcg::Point3< P3ScalarType >::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 161 of file deprecated_point3.h.

template<class P3ScalarType>
void vcg::Point3< P3ScalarType >::FromPolarRad ( const P3ScalarType &  ro,
const P3ScalarType &  theta,
const P3ScalarType &  phi 
) [inline]

Convert from polar coordinates to cartesian coordinates.

Theta is the azimuth angle and ranges between [0, 2PI) degrees. Phi is the elevation angle (not the polar angle) and ranges between [-90, 90] degrees.

Note:
Note that instead of the classical polar angle, which ranges between 0 and PI degrees, we opt for the elevation angle to obtain a more intuitive spherical coordinate system.

Definition at line 364 of file deprecated_point3.h.

template<class P3ScalarType>
template<class Q >
void vcg::Point3< P3ScalarType >::Import ( const Point3< Q > &  b  )  [inline]

Definition at line 168 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType vcg::Point3< P3ScalarType >::Norm ( void   )  const [inline]

Definition at line 302 of file deprecated_point3.h.

template<class P3ScalarType>
Point3& vcg::Point3< P3ScalarType >::Normalize ( void   )  [inline]

Definition at line 327 of file deprecated_point3.h.

template<class P3ScalarType>
Point3& vcg::Point3< P3ScalarType >::normalized (  )  [inline]

Definition at line 335 of file deprecated_point3.h.

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

Definition at line 383 of file deprecated_point3.h.

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

Dot product.

Definition at line 257 of file deprecated_point3.h.

template<class P3ScalarType>
Point3 vcg::Point3< P3ScalarType >::operator* ( const P3ScalarType  s  )  const [inline]

Definition at line 248 of file deprecated_point3.h.

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

Definition at line 287 of file deprecated_point3.h.

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

Definition at line 240 of file deprecated_point3.h.

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

Definition at line 273 of file deprecated_point3.h.

template<class P3ScalarType>
Point3 vcg::Point3< P3ScalarType >::operator- (  )  const [inline]

Definition at line 413 of file deprecated_point3.h.

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

Definition at line 244 of file deprecated_point3.h.

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

Definition at line 280 of file deprecated_point3.h.

template<class P3ScalarType>
Point3 vcg::Point3< P3ScalarType >::operator/ ( const P3ScalarType  s  )  const [inline]

Definition at line 252 of file deprecated_point3.h.

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

Definition at line 294 of file deprecated_point3.h.

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

Definition at line 387 of file deprecated_point3.h.

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

Definition at line 399 of file deprecated_point3.h.

template<class P3ScalarType>
Point3& vcg::Point3< P3ScalarType >::operator= ( Point3< P3ScalarType > const &  p  )  [inline]

Definition at line 147 of file deprecated_point3.h.

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

Definition at line 379 of file deprecated_point3.h.

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

Definition at line 393 of file deprecated_point3.h.

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

Definition at line 405 of file deprecated_point3.h.

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

Definition at line 204 of file deprecated_point3.h.

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

Definition at line 199 of file deprecated_point3.h.

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

Cross product.

Definition at line 263 of file deprecated_point3.h.

template<class P3ScalarType>
Point3& vcg::Point3< P3ScalarType >::Scale ( const Point3< P3ScalarType > &  p  )  [inline]

Definition at line 318 of file deprecated_point3.h.

template<class P3ScalarType>
Point3& vcg::Point3< P3ScalarType >::Scale ( const P3ScalarType  sx,
const P3ScalarType  sy,
const P3ScalarType  sz 
) [inline]

Definition at line 311 of file deprecated_point3.h.

template<class P3ScalarType>
void vcg::Point3< P3ScalarType >::SetZero (  )  [inline]

Definition at line 152 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType vcg::Point3< P3ScalarType >::SquaredNorm ( void   )  const [inline]

Definition at line 306 of file deprecated_point3.h.

template<class P3ScalarType>
void vcg::Point3< P3ScalarType >::ToPolarRad ( P3ScalarType &  ro,
P3ScalarType &  theta,
P3ScalarType &  phi 
) const [inline]

Convert to polar coordinates from cartesian coordinates.

Theta is the azimuth angle and ranges between [0, 2PI) degrees. Phi is the elevation angle (not the polar angle) and ranges between [-PI/2, PI/2] degrees.

/note Note that instead of the classical polar angle, which ranges between 0 and PI degrees we opt for the elevation angle to obtain a more intuitive spherical coordinate system.

Definition at line 347 of file deprecated_point3.h.

template<class P3ScalarType>
const P3ScalarType& vcg::Point3< P3ScalarType >::V ( const int  i  )  const [inline]

Definition at line 228 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType& vcg::Point3< P3ScalarType >::V ( const int  i  )  [inline]

Definition at line 223 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType* vcg::Point3< P3ScalarType >::V (  )  [inline]

Definition at line 219 of file deprecated_point3.h.

template<class P3ScalarType>
const P3ScalarType* vcg::Point3< P3ScalarType >::V (  )  const [inline]

Definition at line 215 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType& vcg::Point3< P3ScalarType >::X (  )  [inline]

Definition at line 212 of file deprecated_point3.h.

template<class P3ScalarType>
const P3ScalarType& vcg::Point3< P3ScalarType >::X (  )  const [inline]

Definition at line 209 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType& vcg::Point3< P3ScalarType >::Y (  )  [inline]

Definition at line 213 of file deprecated_point3.h.

template<class P3ScalarType>
const P3ScalarType& vcg::Point3< P3ScalarType >::Y (  )  const [inline]

Definition at line 210 of file deprecated_point3.h.

template<class P3ScalarType>
P3ScalarType& vcg::Point3< P3ScalarType >::Z (  )  [inline]

Definition at line 214 of file deprecated_point3.h.

template<class P3ScalarType>
const P3ScalarType& vcg::Point3< P3ScalarType >::Z (  )  const [inline]

Definition at line 211 of file deprecated_point3.h.


Member Data Documentation

template<class P3ScalarType>
P3ScalarType vcg::Point3< P3ScalarType >::_v[3] [protected]

The only data member. Hidden to user.

Definition at line 115 of file deprecated_point3.h.


The documentation for this class was generated from the following files:
 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