Public Types | Protected Attributes
vcg::Point3< P3ScalarType > Class Template Reference

#include <deprecated_point3.h>

List of all members.

Public Types

enum  { Dimension = 3 }
typedef P3ScalarType ScalarType

Public Member Functions

Data Access.
P3ScalarType & operator[] (const int i)
const P3ScalarType & operator[] (const int i) const
const P3ScalarType & X () const
const P3ScalarType & Y () const
const P3ScalarType & Z () const
P3ScalarType & X ()
P3ScalarType & Y ()
P3ScalarType & Z ()
const P3ScalarType * V () const
P3ScalarType * V ()
P3ScalarType & V (const int i)
const P3ScalarType & V (const int i) const
Classical overloading of operators

Note

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

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

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
bool operator>= (Point3 const &p) const
Point3 operator- () 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

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

Detailed Description

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

Definition at line 112 of file deprecated_point3.h.


Member Typedef Documentation

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

Definition at line 119 of file deprecated_point3.h.


Member Enumeration Documentation

template<class P3ScalarType>
anonymous enum
Enumerator:
Dimension 

Definition at line 120 of file deprecated_point3.h.


Constructor & Destructor Documentation

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

Definition at line 129 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 130 of file deprecated_point3.h.

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

Definition at line 136 of file deprecated_point3.h.

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

Definition at line 142 of file deprecated_point3.h.


Member Function Documentation

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

Definition at line 190 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 196 of file deprecated_point3.h.

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

Definition at line 201 of file deprecated_point3.h.

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

Definition at line 280 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 162 of file deprecated_point3.h.

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

Definition at line 176 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) radians. Phi is the elevation angle (not the polar angle) and ranges between [-PI/2, PI/2] radians.

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 383 of file deprecated_point3.h.

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

Definition at line 169 of file deprecated_point3.h.

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

Definition at line 394 of file deprecated_point3.h.

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

Definition at line 321 of file deprecated_point3.h.

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

Definition at line 346 of file deprecated_point3.h.

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

Definition at line 354 of file deprecated_point3.h.

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

Definition at line 409 of file deprecated_point3.h.

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

Definition at line 267 of file deprecated_point3.h.

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

Dot product.

Definition at line 276 of file deprecated_point3.h.

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

Definition at line 306 of file deprecated_point3.h.

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

Definition at line 259 of file deprecated_point3.h.

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

Definition at line 292 of file deprecated_point3.h.

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

Definition at line 263 of file deprecated_point3.h.

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

Definition at line 439 of file deprecated_point3.h.

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

Definition at line 299 of file deprecated_point3.h.

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

Definition at line 271 of file deprecated_point3.h.

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

Definition at line 313 of file deprecated_point3.h.

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

Definition at line 413 of file deprecated_point3.h.

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

Definition at line 425 of file deprecated_point3.h.

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

Definition at line 148 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>
bool vcg::Point3< P3ScalarType >::operator> ( Point3< P3ScalarType > const &  p) const [inline]

Definition at line 419 of file deprecated_point3.h.

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

Definition at line 431 of file deprecated_point3.h.

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

Definition at line 218 of file deprecated_point3.h.

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

Definition at line 223 of file deprecated_point3.h.

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

Cross product.

Definition at line 282 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 330 of file deprecated_point3.h.

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

Definition at line 337 of file deprecated_point3.h.

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

Definition at line 153 of file deprecated_point3.h.

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

Definition at line 325 of file deprecated_point3.h.

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

Definition at line 183 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 366 of file deprecated_point3.h.

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

Definition at line 234 of file deprecated_point3.h.

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

Definition at line 238 of file deprecated_point3.h.

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

Definition at line 242 of file deprecated_point3.h.

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

Definition at line 247 of file deprecated_point3.h.

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

Definition at line 228 of file deprecated_point3.h.

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

Definition at line 231 of file deprecated_point3.h.

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

Definition at line 229 of file deprecated_point3.h.

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

Definition at line 232 of file deprecated_point3.h.

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

Definition at line 230 of file deprecated_point3.h.

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

Definition at line 233 of file deprecated_point3.h.

template<class P3ScalarType>
static Point3 vcg::Point3< P3ScalarType >::Zero ( void  ) [inline, static]

Definition at line 206 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 116 of file deprecated_point3.h.


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


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