#include <points.H>
Inheritance diagram for mlib::NDCpt:


Public Types | |
| typedef double | value_type |
Public Member Functions | |
| Point2 () | |
| Default constructor. Creates a point at the origin. | |
| Point2 (double s) | |
| Constructor that creates a point with the supplied double argumetn value in all components. | |
| Point2 (double xx, double yy) | |
| Construtor that creates a point with the components supplied in the arguments. | |
| const double * | data () const |
| Returns the elements of the point as an array. | |
| double | operator[] (int index) const |
| double & | operator[] (int index) |
| NDCpt | operator+ (const NDCpt &p) const |
| Adds a point to a point. | |
| NDCpt | operator+ (const NDCvec &v) const |
| NDCvec | operator- (const NDCpt &p) const |
| NDCpt | operator- (const NDCvec &v) const |
| NDCpt | operator- () const |
| NDCpt | operator * (double s) const |
| NDCpt | operator * (const NDCpt &p) const |
| Component-wise multiplcation. | |
| NDCpt | operator/ (double s) const |
| void | operator *= (const NDCpt &p) const |
| Component-wise multiplication. | |
| void | operator *= (double scalar) |
| void | operator+= (const NDCpt &p) |
| Adds a point to a point. | |
| void | operator+= (const NDCvec &v) |
| void | operator-= (const NDCpt &p) |
| void | operator-= (const NDCvec &v) |
| void | operator/= (double scalar) |
| bool | operator== (const NDCpt &p) const |
| Are the two points exactly equal (component-wise)? | |
| bool | operator!= (const NDCpt &p) const |
| Are the two points not equal (component-wise)? | |
| double | length () const |
| Compute the distance from the point to the origin. | |
| double | length_sqrd () const |
| Compute the distance squared from the point to the origin. | |
| double | dist_sqrd (const NDCpt &p) const |
| Compute the distance squared between two points. | |
| double | dist (const NDCpt &p) const |
| Compute the distance between two points. | |
| bool | is_equal (const NDCpt &p, double epsSqrd=epsAbsSqrdMath()) const |
| Is the distance between the two points essentially zero? | |
Constructors | |
| NDCpt () | |
| NDCpt (double s) | |
| NDCpt (double x, double y) | |
| NDCpt (CNDCZpt &n) | |
| NDCpt (CWpt &w) | |
| NDCpt (CXYpt &) | |
| NDCpt (CPIXEL &p) | |
Static Public Member Functions | |
| static CNDCpt & | Origin () |
| static int | dim () |
Protected Attributes | |
| double | _x |
| double | _y |
Static Protected Attributes | |
| static CNDCpt | _origin |
Definition at line 988 of file points.H.
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Definition at line 203 of file points.C. References mlib::Point2< NDCpt, NDCvec >::_x, mlib::Point2< NDCpt, NDCvec >::_y, and VIEW_ASPECT. |
|
|
|
|
|
Returns the elements of the point as an array.
Definition at line 66 of file point2.H. References mlib::Point2< P, V >::_x. |
|
|
|
|
|
Compute the distance between two points.
Definition at line 138 of file point2.H. References mlib::Point2< P, V >::dist_sqrd(). |
|
|
Compute the distance squared between two points.
Definition at line 135 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
||||||||||||
|
Is the distance between the two points essentially zero?
Definition at line 146 of file point2.H. References mlib::Point2< P, V >::dist_sqrd(). |
|
|
Compute the distance from the point to the origin.
Definition at line 123 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Compute the distance squared from the point to the origin.
Definition at line 127 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Component-wise multiplcation.
Definition at line 89 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 85 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 102 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Component-wise multiplication.
Definition at line 91 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Are the two points not equal (component-wise)?
Definition at line 113 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 80 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Adds a point to a point.
Definition at line 79 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 97 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Adds a point to a point.
Definition at line 96 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 83 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 82 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 81 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 101 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 100 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 86 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 103 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Are the two points exactly equal (component-wise)?
Definition at line 111 of file point2.H. References mlib::Point2< P, V >::_x, and mlib::Point2< P, V >::_y. |
|
|
Definition at line 69 of file point2.H. References mlib::Point2< P, V >::_x. |
|
|
Definition at line 68 of file point2.H. References mlib::Point2< P, V >::_x. |
|
|
Definition at line 1009 of file points.H. References _origin. |
|
||||||||||||
|
Construtor that creates a point with the components supplied in the arguments.
|
|
|
Constructor that creates a point with the supplied double argumetn value in all components.
|
|
|
Default constructor. Creates a point at the origin.
|
|
|
Definition at line 992 of file points.H. Referenced by Origin(). |
|
|
Definition at line 36 of file point2.H. Referenced by NDCpt(). |
|
|
Definition at line 36 of file point2.H. Referenced by NDCpt(). |
1.4.4