#include <deprecated_point.h>
Public Types | |
typedef Point2 | PointType |
typedef S | ScalarType |
Public Member Functions | |
Special members for 2D points. | |
ScalarType & | Angle () |
returns the angle with X axis (radiants, in [-PI, +PI] ) | |
Point2 | operator~ () const |
Point2 (const S a, const S b) | |
yx constructor | |
Point2 () | |
default | |
Point2 & | Rotate (const ScalarType rad) |
rotates the point of an angle (radiants, counterclockwise) | |
Point2 & | ToCartesian () |
transform the point in polar coords into cartesian coords | |
Point2 & | ToPolar () |
transform the point in cartesian coords into polar coords | |
Implementation of standard functions for 3D points | |
| |
Point2 & | HomoNormalize () |
Homogeneous normalization (division by W). | |
S | Max () const |
returns the biggest component | |
int | MaxI () const |
returns the index of the biggest component | |
S | Min () const |
returns the smallest component | |
int | MinI () const |
returns the index of the smallest component | |
S | Norm () const |
Euclidean norm. | |
template<class PT > | |
Point2 & | Normalize (const PT &p) |
Normalization (division by norm), static version. | |
Point2 & | Normalize () |
Normalization (division by norm). | |
S | NormInfinity () const |
norm infinity: largest absolute value of compoenet | |
S | NormOne () const |
norm 1: sum of absolute values of components | |
bool | operator!= (Point2 const &p) const |
S | operator% (Point2 const &p) const |
S | operator* (Point2 const &p) const |
Point2 | operator* (const S s) const |
Point2 & | operator*= (const S s) |
Point2 | operator+ (Point2 const &p) const |
Point2 & | operator+= (Point2 const &p) |
Point2 | operator- () const |
Point2 | operator- (Point2 const &p) const |
Point2 & | operator-= (Point2 const &p) |
Point2 | operator/ (const S s) const |
Point2 & | operator/= (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]) | |
PointType & | Scale (const PointType &p) |
S | SquaredNorm () const |
Squared Euclidean norm. | |
S | StableDot (const PointType &p) const |
S | 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. |
Definition at line 376 of file deprecated_point.h.
typedef Point2 vcg::ndim::Point2< S >::PointType |
Reimplemented from vcg::ndim::Point< 2, S >.
Definition at line 379 of file deprecated_point.h.
typedef S vcg::ndim::Point2< S >::ScalarType |
Reimplemented from vcg::ndim::Point< 2, S >.
Definition at line 378 of file deprecated_point.h.
vcg::ndim::Point2< S >::Point2 | ( | ) | [inline] |
default
Definition at line 388 of file deprecated_point.h.
vcg::ndim::Point2< S >::Point2 | ( | const S | a, | |
const S | b | |||
) | [inline] |
yx constructor
Definition at line 391 of file deprecated_point.h.
vcg::ndim::Point2< S >::Point2 | ( | const S | nv[2] | ) | [inline] |
Definition at line 435 of file deprecated_point.h.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
bool vcg::ndim::Point2< S >::operator!= | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 484 of file deprecated_point.h.
S vcg::ndim::Point2< S >::operator% | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 515 of file deprecated_point.h.
S vcg::ndim::Point2< S >::operator* | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 478 of file deprecated_point.h.
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.
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.
Point2 vcg::ndim::Point2< S >::operator+ | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 438 of file deprecated_point.h.
Point2& vcg::ndim::Point2< S >::operator+= | ( | Point2< S > const & | p | ) | [inline] |
Definition at line 454 of file deprecated_point.h.
Point2 vcg::ndim::Point2< S >::operator- | ( | ) | const [inline] |
Reimplemented from vcg::ndim::Point< 2, S >.
Definition at line 451 of file deprecated_point.h.
Point2 vcg::ndim::Point2< S >::operator- | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 441 of file deprecated_point.h.
Point2& vcg::ndim::Point2< S >::operator-= | ( | Point2< S > const & | p | ) | [inline] |
Definition at line 457 of file deprecated_point.h.
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.
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.
bool vcg::ndim::Point2< S >::operator< | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 487 of file deprecated_point.h.
bool vcg::ndim::Point2< S >::operator<= | ( | Point2< S > const & | p | ) | [inline] |
Definition at line 493 of file deprecated_point.h.
bool vcg::ndim::Point2< S >::operator== | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 481 of file deprecated_point.h.
bool vcg::ndim::Point2< S >::operator> | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 490 of file deprecated_point.h.
bool vcg::ndim::Point2< S >::operator>= | ( | Point2< S > const & | p | ) | const [inline] |
Definition at line 496 of file deprecated_point.h.
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.
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.
PointType& vcg::ndim::Point2< S >::Scale | ( | const PointType & | p | ) | [inline] |
Definition at line 533 of file deprecated_point.h.
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.
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.
S vcg::ndim::Point2< S >::StableDot | ( | const PointType & | p | ) | const [inline] |
Definition at line 536 of file deprecated_point.h.
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.
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.
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.
void vcg::ndim::Point2< S >::Zero | ( | ) | [inline] |
Definition at line 432 of file deprecated_point.h.