vcg::ndim::Point2< S > Class Template Reference
[Space]

#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.

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

Implementation of standard functions for 3D points



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


Constructor & Destructor Documentation

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

default

Definition at line 388 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 391 of file deprecated_point.h.

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

Definition at line 435 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 401 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 >
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 469 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 466 of file deprecated_point.h.

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

Normalization (division by norm), static version.

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

Definition at line 502 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 499 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 484 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 >
S vcg::ndim::Point2< S >::operator* ( Point2< S > const &  p  )  const [inline]

Definition at line 478 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 444 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 460 of file deprecated_point.h.

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

Definition at line 438 of file deprecated_point.h.

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

Definition at line 454 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 451 of file deprecated_point.h.

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

Definition at line 441 of file deprecated_point.h.

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

Definition at line 457 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 447 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 463 of file deprecated_point.h.

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

Definition at line 487 of file deprecated_point.h.

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

Definition at line 493 of file deprecated_point.h.

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

Definition at line 481 of file deprecated_point.h.

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

Definition at line 490 of file deprecated_point.h.

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

Definition at line 496 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 396 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 419 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 >
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 475 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 472 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 412 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 405 of file deprecated_point.h.

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

Definition at line 432 of file deprecated_point.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:25 2013