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


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) |
| PIXEL | operator+ (const PIXEL &p) const |
| Adds a point to a point. | |
| PIXEL | operator+ (const VEXEL &v) const |
| VEXEL | operator- (const PIXEL &p) const |
| PIXEL | operator- (const VEXEL &v) const |
| PIXEL | operator- () const |
| PIXEL | operator * (double s) const |
| PIXEL | operator * (const PIXEL &p) const |
| Component-wise multiplcation. | |
| PIXEL | operator/ (double s) const |
| void | operator *= (const PIXEL &p) const |
| Component-wise multiplication. | |
| void | operator *= (double scalar) |
| void | operator+= (const PIXEL &p) |
| Adds a point to a point. | |
| void | operator+= (const VEXEL &v) |
| void | operator-= (const PIXEL &p) |
| void | operator-= (const VEXEL &v) |
| void | operator/= (double scalar) |
| bool | operator== (const PIXEL &p) const |
| Are the two points exactly equal (component-wise)? | |
| bool | operator!= (const PIXEL &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 PIXEL &p) const |
| Compute the distance squared between two points. | |
| double | dist (const PIXEL &p) const |
| Compute the distance between two points. | |
| bool | is_equal (const PIXEL &p, double epsSqrd=epsAbsSqrdMath()) const |
| Is the distance between the two points essentially zero? | |
Constructors | |
| PIXEL () | |
| PIXEL (double s) | |
| PIXEL (double x, double y) | |
| PIXEL (CXYpt &) | |
| PIXEL (CWpt &w) | |
Static Public Member Functions | |
| static CPIXEL & | Origin () |
| static int | dim () |
Protected Attributes | |
| double | _x |
| double | _y |
Static Protected Attributes | |
| static CPIXEL | _origin |
Definition at line 1131 of file points.H.
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Definition at line 487 of file points.C. References mlib::Point2< PIXEL, VEXEL >::_x, mlib::Point2< PIXEL, VEXEL >::_y, VIEW_PIXELS, and VIEW_SIZE. |
|
|
|
|
|
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 1150 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 1135 of file points.H. Referenced by Origin(). |
|
|
Definition at line 36 of file point2.H. Referenced by PIXEL(). |
|
|
Definition at line 36 of file point2.H. Referenced by PIXEL(). |
1.4.4