2D point using 32-bit integer coordinates. More...
#include <mi32/point.h>

Public Member Functions | |
| LPOINT2D (const DPOINT2D &pt) | |
| LPOINT2D (const WPOINT2D &pt) | |
| LPOINT2D (INT32 dx, INT32 dy) | |
| LPOINT2D () | |
| DEPRECATED_MSG ("Use GetDistance2D") double GetDistance(const LPOINT2D &pt) const | |
| double | GetDistance2D (const LPOINT2D &pt) const |
| LPOINT2D | operator+ (const LPOINT2D &rhs) const |
| LPOINT2D | operator+= (const LPOINT2D &rhs) |
| LPOINT2D | operator- (const LPOINT2D &rhs) const |
| LPOINT2D | operator- () |
| LPOINT2D | operator-= (const LPOINT2D &rhs) |
| LPOINT2D & | operator= (const DPOINT2D &pt) |
| LPOINT2D & | operator= (const WPOINT2D &rhs) |
| void | Set (INT32 ix, INT32 iy) |
| void | SwapBytes () |
Public Attributes | |
| INT32 | x |
| INT32 | y |
2D point using 32-bit integer coordinates.
| LPOINT2D::LPOINT2D | ( | ) | [inline] |
Default constructor, performs no initialization.
| LPOINT2D::LPOINT2D | ( | const DPOINT2D & | pt | ) | [inline, explicit] |
| LPOINT2D::DEPRECATED_MSG | ( | "Use GetDistance2D" | ) | const [inline] |
Return distance between two points.
| double LPOINT2D::GetDistance2D | ( | const LPOINT2D & | pt | ) | const [inline] |
Return distance between two points.
| LPOINT2D LPOINT2D::operator- | ( | ) | [inline] |
Negation operator.
Assignment from DPOINT2D without rounding.
| void LPOINT2D::SwapBytes | ( | ) | [inline] |
Perform byte-swapping.
Reimplemented in LPOINT3D.
1.6.1