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


| 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) | 
| XYpt | operator+ (const XYpt &p) const | 
| Adds a point to a point. | |
| XYpt | operator+ (const XYvec &v) const | 
| XYvec | operator- (const XYpt &p) const | 
| XYpt | operator- (const XYvec &v) const | 
| XYpt | operator- () const | 
| XYpt | operator * (double s) const | 
| XYpt | operator * (const XYpt &p) const | 
| Component-wise multiplcation. | |
| XYpt | operator/ (double s) const | 
| void | operator *= (const XYpt &p) const | 
| Component-wise multiplication. | |
| void | operator *= (double scalar) | 
| void | operator+= (const XYpt &p) | 
| Adds a point to a point. | |
| void | operator+= (const XYvec &v) | 
| void | operator-= (const XYpt &p) | 
| void | operator-= (const XYvec &v) | 
| void | operator/= (double scalar) | 
| bool | operator== (const XYpt &p) const | 
| Are the two points exactly equal (component-wise)? | |
| bool | operator!= (const XYpt &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 XYpt &p) const | 
| Compute the distance squared between two points. | |
| double | dist (const XYpt &p) const | 
| Compute the distance between two points. | |
| bool | is_equal (const XYpt &p, double epsSqrd=epsAbsSqrdMath()) const | 
| Is the distance between the two points essentially zero? | |
| Constructors | |
| XYpt () | |
| XYpt (double s) | |
| XYpt (double x, double y) | |
| XYpt (CNDCpt &) | |
| XYpt (CPIXEL &) | |
| XYpt (CWpt &) | |
| XYpt (CXYline &, CXYline &) | |
| XYpt (CXYline &, CXYpt &) | |
| Static Public Member Functions | |
| static CXYpt & | Origin () | 
| static int | dim () | 
| Protected Attributes | |
| double | _x | 
| double | _y | 
| Static Protected Attributes | |
| static CXYpt | _origin | 
Definition at line 568 of file points.H.
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| 
 Definition at line 124 of file points.C. References mlib::Point2< XYpt, XYvec >::_x, mlib::Point2< XYpt, XYvec >::_y, and VIEW_ASPECT. | 
| 
 | 
| 
 Definition at line 148 of file points.C. References mlib::Point2< XYpt, XYvec >::_x, mlib::Point2< XYpt, XYvec >::_y, VIEW_PIXELS, and VIEW_SIZE. | 
| 
 | 
| 
 Definition at line 119 of file points.C. References WtoXY. | 
| 
 | 
| Returns the elements of the point as an array. 
 | 
| 
 | 
| 
 | 
| 
 | 
| Compute the distance between two points. 
 | 
| 
 | 
| Compute the distance squared between two points. 
 | 
| 
 | ||||||||||||
| Is the distance between the two points essentially zero? 
 | 
| 
 | 
| Compute the distance from the point to the origin. 
 
 | 
| 
 | 
| Compute the distance squared from the point to the origin. 
 
 | 
| 
 | 
| Component-wise multiplcation. 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| Component-wise multiplication. 
 | 
| 
 | 
| Are the two points not equal (component-wise)? 
 | 
| 
 | 
| 
 | 
| 
 | 
| Adds a point to a point. 
 
 | 
| 
 | 
| 
 | 
| 
 | 
| Adds a point to a point. 
 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| Are the two points exactly equal (component-wise)? 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 Definition at line 590 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 572 of file points.H. Referenced by Origin(). | 
| 
 | 
| 
 Definition at line 36 of file point2.H. Referenced by XYpt(). | 
| 
 | 
| 
 Definition at line 36 of file point2.H. Referenced by XYpt(). | 
 1.4.4
 1.4.4