Public Types
vcg::ndim::Point2< S > Class Template Reference

#include <deprecated_point.h>

Inheritance diagram for vcg::ndim::Point2< S >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Point2 PointType
typedef S ScalarType

Public Member Functions

Special members for 2D points.
 Point2 ()
 default
 Point2 (const S a, const S b)
 yx constructor
Point2 operator~ () const
ScalarTypeAngle ()
 returns the angle with X axis (radiants, in [-PI, +PI] )
Point2ToPolar ()
 transform the point in cartesian coords into polar coords
Point2ToCartesian ()
 transform the point in polar coords into cartesian coords
Point2Rotate (const ScalarType rad)
 rotates the point of an angle (radiants, counterclockwise)

Implementation of standard functions for 3D points

void Zero ()
 Point2 (const S nv[2])
Point2 operator+ (Point2 const &p) const
Point2 operator- (Point2 const &p) const
Point2 operator* (const S s) const
Point2 operator/ (const S s) const
Point2 operator- () const
Point2operator+= (Point2 const &p)
Point2operator-= (Point2 const &p)
Point2operator*= (const S s)
Point2operator/= (const S s)
Norm () const
 Euclidean norm.
SquaredNorm () const
 Squared Euclidean norm.
operator* (Point2 const &p) const
bool operator== (Point2 const &p) const
bool operator!= (Point2 const &p) const
bool operator< (Point2 const &p) const
bool operator> (Point2 const &p) const
bool operator<= (Point2 const &p)
bool operator>= (Point2 const &p) const
Point2Normalize ()
 Normalization (division by norm)
Point2HomoNormalize ()
 Homogeneous normalization (division by W)
NormInfinity () const
 norm infinity: largest absolute value of compoenet
NormOne () const
 norm 1: sum of absolute values of components
operator% (Point2 const &p) const
Sum () const
 the sum of the components
Max () const
 returns the biggest component
Min () const
 returns the smallest component
int MaxI () const
 returns the index of the biggest component
int MinI () const
 returns the index of the smallest component
PointTypeScale (const PointType &p)
StableDot (const PointType &p) const
template<class PT >
static S Norm (const PT &p)
 Euclidean norm, static version.
template<class PT >
static S SquaredNorm (const PT &p)
 Squared Euclidean norm, static version.

Detailed Description

template<class S>
class vcg::ndim::Point2< S >

Definition at line 380 of file deprecated_point.h.


Member Typedef Documentation

template<class S >
typedef Point2 vcg::ndim::Point2< S >::PointType

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 383 of file deprecated_point.h.

template<class S >
typedef S vcg::ndim::Point2< S >::ScalarType

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 382 of file deprecated_point.h.


Constructor & Destructor Documentation

template<class S >
vcg::ndim::Point2< S >::Point2 ( ) [inline]

default

Definition at line 392 of file deprecated_point.h.

template<class S >
vcg::ndim::Point2< S >::Point2 ( const S  a,
const S  b 
) [inline]

yx constructor

Definition at line 395 of file deprecated_point.h.

template<class S >
vcg::ndim::Point2< S >::Point2 ( const S  nv[2]) [inline]

Definition at line 439 of file deprecated_point.h.


Member Function Documentation

template<class S >
ScalarType& vcg::ndim::Point2< S >::Angle ( ) [inline]

returns the angle with X axis (radiants, in [-PI, +PI] )

Definition at line 405 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::HomoNormalize ( ) [inline]

Homogeneous normalization (division by W)

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 506 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::Max ( ) const [inline]

returns the biggest component

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 521 of file deprecated_point.h.

template<class S >
int vcg::ndim::Point2< S >::MaxI ( ) const [inline]

returns the index of the biggest component

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 527 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::Min ( ) const [inline]

returns the smallest component

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 524 of file deprecated_point.h.

template<class S >
int vcg::ndim::Point2< S >::MinI ( ) const [inline]

returns the index of the smallest component

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 530 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::Norm ( ) const [inline]

Euclidean norm.

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 470 of file deprecated_point.h.

template<class S >
template<class PT >
static S vcg::ndim::Point2< S >::Norm ( const PT &  p) [inline, static]

Euclidean norm, static version.

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 473 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::Normalize ( ) [inline]

Normalization (division by norm)

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 503 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::NormInfinity ( ) const [inline]

norm infinity: largest absolute value of compoenet

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 509 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::NormOne ( ) const [inline]

norm 1: sum of absolute values of components

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 512 of file deprecated_point.h.

template<class S >
bool vcg::ndim::Point2< S >::operator!= ( Point2< S > const &  p) const [inline]

Definition at line 488 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::operator% ( Point2< S > const &  p) const [inline]

Definition at line 515 of file deprecated_point.h.

template<class S >
Point2 vcg::ndim::Point2< S >::operator* ( const S  s) const [inline]

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 448 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::operator* ( Point2< S > const &  p) const [inline]

Definition at line 482 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::operator*= ( const S  s) [inline]

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 464 of file deprecated_point.h.

template<class S >
Point2 vcg::ndim::Point2< S >::operator+ ( Point2< S > const &  p) const [inline]

Definition at line 442 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::operator+= ( Point2< S > const &  p) [inline]

Definition at line 458 of file deprecated_point.h.

template<class S >
Point2 vcg::ndim::Point2< S >::operator- ( Point2< S > const &  p) const [inline]

Definition at line 445 of file deprecated_point.h.

template<class S >
Point2 vcg::ndim::Point2< S >::operator- ( ) const [inline]

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 455 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::operator-= ( Point2< S > const &  p) [inline]

Definition at line 461 of file deprecated_point.h.

template<class S >
Point2 vcg::ndim::Point2< S >::operator/ ( const S  s) const [inline]

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 451 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::operator/= ( const S  s) [inline]

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 467 of file deprecated_point.h.

template<class S >
bool vcg::ndim::Point2< S >::operator< ( Point2< S > const &  p) const [inline]

Definition at line 491 of file deprecated_point.h.

template<class S >
bool vcg::ndim::Point2< S >::operator<= ( Point2< S > const &  p) [inline]

Definition at line 497 of file deprecated_point.h.

template<class S >
bool vcg::ndim::Point2< S >::operator== ( Point2< S > const &  p) const [inline]

Definition at line 485 of file deprecated_point.h.

template<class S >
bool vcg::ndim::Point2< S >::operator> ( Point2< S > const &  p) const [inline]

Definition at line 494 of file deprecated_point.h.

template<class S >
bool vcg::ndim::Point2< S >::operator>= ( Point2< S > const &  p) const [inline]

Definition at line 500 of file deprecated_point.h.

template<class S >
Point2 vcg::ndim::Point2< S >::operator~ ( ) const [inline]

unary orthogonal operator (2D equivalent of cross product) returns orthogonal vector (90 deg left)

Definition at line 400 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::Rotate ( const ScalarType  rad) [inline]

rotates the point of an angle (radiants, counterclockwise)

Definition at line 423 of file deprecated_point.h.

template<class S >
PointType& vcg::ndim::Point2< S >::Scale ( const PointType p) [inline]

Definition at line 533 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::SquaredNorm ( ) const [inline]

Squared Euclidean norm.

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 476 of file deprecated_point.h.

template<class S >
template<class PT >
static S vcg::ndim::Point2< S >::SquaredNorm ( const PT &  p) [inline, static]

Squared Euclidean norm, static version.

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 479 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::StableDot ( const PointType p) const [inline]

Definition at line 536 of file deprecated_point.h.

template<class S >
S vcg::ndim::Point2< S >::Sum ( ) const [inline]

the sum of the components

Reimplemented from vcg::ndim::Point< 2, S >.

Definition at line 518 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::ToCartesian ( ) [inline]

transform the point in polar coords into cartesian coords

Definition at line 416 of file deprecated_point.h.

template<class S >
Point2& vcg::ndim::Point2< S >::ToPolar ( ) [inline]

transform the point in cartesian coords into polar coords

Definition at line 409 of file deprecated_point.h.

template<class S >
void vcg::ndim::Point2< S >::Zero ( ) [inline]

Definition at line 436 of file deprecated_point.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:50