2D point using 64-bit 'double' coordinates. More...
#include <mi32/point.h>

Public Member Functions | |
| DPOINT2D (const DPOINT2D_OLD &pt) | |
| DPOINT2D (const FPOINT2D &pt) | |
| DPOINT2D (const LPOINT2D &pt) | |
| DPOINT2D (const WPOINT2D &pt) | |
| DPOINT2D (const double dx, const double dy) | |
| DPOINT2D () | |
| DPOINT2D | ComputeMidpoint (const DPOINT2D &rhs) const |
| DEPRECATED_MSG ("Use GetDistanceSquared2D") double GetDistanceSquared(const DPOINT2D &pt) const | |
| DEPRECATED_MSG ("Use GetDistance2D") double GetDistance(const DPOINT2D &pt) const | |
| double | DotProduct (const DPOINT2D &pt) const |
| double | GetAngle () const |
| double | GetAngle (const DPOINT2D &pt) const |
| double | GetDistance2D (const DPOINT2D &pt) const |
| double | GetDistanceSquared2D (const DPOINT2D &pt) const |
| double | GetMagnitude2D () const |
| double | GetMagnitudeSquared2D () const |
| double | GetOrdinate (int index) const |
| double | GetX () const |
| double | GetY () const |
| void | Move (const double distance, const double azimuth) |
| void | Normalize () |
| DPOINT2D | operator* (const double rhs) const |
| DPOINT2D | operator*= (const double rhs) |
| DPOINT2D | operator+ (const DPOINT2D &rhs) const |
| DPOINT2D | operator+= (const DPOINT2D &rhs) |
| DPOINT2D | operator- (const DPOINT2D &rhs) const |
| DPOINT2D | operator- () |
| DPOINT2D | operator-= (const DPOINT2D &rhs) |
| DPOINT2D | operator/ (const double rhs) const |
| DPOINT2D | operator/= (const double rhs) |
| DPOINT2D & | operator= (const DPOINT2D_OLD &rhs) |
| DPOINT2D & | operator= (const FPOINT2D &rhs) |
| DPOINT2D & | operator= (const LPOINT2D &rhs) |
| DPOINT2D & | operator= (const WPOINT2D &rhs) |
| LPOINT2D | RoundToLongExact () const |
| LPOINT2D | RoundToLongLimited () const |
| LPOINT2D | RoundToLongNoLimit () const |
| LPOINT2D | RoundToLongPositive () const |
| void | Set (double ix, double iy) |
| void | SetOrdinate (int index, double value) |
| void | SetX (double p_x) |
| void | SetY (double p_y) |
| void | Shift (const double xval, const double yval) |
| void | Shift (const DPOINT2D &value) |
| void | SwapBytes () |
| LPOINT2D | TruncateToLong () const |
Public Attributes | |
| double | x |
| double | y |
2D point using 64-bit 'double' coordinates.
| DPOINT2D::DPOINT2D | ( | ) | [inline] |
Default constructor.
| DPOINT2D::DPOINT2D | ( | const double | dx, | |
| const double | dy | |||
| ) | [inline] |
Initialization from separate x and y values.
| DPOINT2D::DPOINT2D | ( | const DPOINT2D_OLD & | pt | ) | [inline] |
Construction from DPOINT2D_OLD.
Given 'this' and another point, compute the midpoint between them.
Reimplemented in DPOINT3D.
| DPOINT2D::DEPRECATED_MSG | ( | "Use GetDistanceSquared2D" | ) | const [inline] |
Return squared distance between two points.
| DPOINT2D::DEPRECATED_MSG | ( | "Use GetDistance2D" | ) | const [inline] |
Return distance between two points.
| double DPOINT2D::DotProduct | ( | const DPOINT2D & | pt | ) | const [inline] |
Dot product.
| double DPOINT2D::GetAngle | ( | ) | const [inline] |
Return angle of the segment from origin to point.
| double DPOINT2D::GetAngle | ( | const DPOINT2D & | pt | ) | const [inline] |
Return angle of the segment, 'this' is the basepoint.
| double DPOINT2D::GetDistance2D | ( | const DPOINT2D & | pt | ) | const [inline] |
Return distance between two points.
| double DPOINT2D::GetDistanceSquared2D | ( | const DPOINT2D & | pt | ) | const [inline] |
Return squared distance between two points.
| double DPOINT2D::GetMagnitude2D | ( | ) | const [inline] |
Return magnitude (distance between origin and point).
| double DPOINT2D::GetMagnitudeSquared2D | ( | ) | const [inline] |
Return squared magnitude.
| double DPOINT2D::GetOrdinate | ( | int | index | ) | const [inline] |
Get ordinate at specified index.
Allows access like array of appropriate dimension (2 or 3).
| index | Index (0-1) or (0-2) if 3D. |
| double DPOINT2D::GetX | ( | ) | const [inline] |
Get X value.
| double DPOINT2D::GetY | ( | ) | const [inline] |
Get Y value.
| void DPOINT2D::Move | ( | const double | distance, | |
| const double | azimuth | |||
| ) | [inline] |
Move point by distance and azimith (in degrees).
| azimuth | Total distance traveled Where [0,1] is 0, and [1,0] is 90 |
| void DPOINT2D::Normalize | ( | ) | [inline] |
Normalize 2D vector represented by point.
Reimplemented in DPOINT3D.
| DPOINT2D DPOINT2D::operator* | ( | const double | rhs | ) | const [inline] |
Multiplication operator.
Reimplemented in DPOINT3D.
| DPOINT2D DPOINT2D::operator*= | ( | const double | rhs | ) | [inline] |
Times equals operator.
Reimplemented in DPOINT3D.
Addition operator.
Reimplemented in DPOINT3D.
Plus equals operator.
Reimplemented in DPOINT3D.
Subtraction operator.
Reimplemented in DPOINT3D.
| DPOINT2D DPOINT2D::operator- | ( | ) | [inline] |
Negation operator.
Minus equals operator.
Reimplemented in DPOINT3D.
| DPOINT2D DPOINT2D::operator/ | ( | const double | rhs | ) | const [inline] |
Division operator.
Reimplemented in DPOINT3D.
| DPOINT2D DPOINT2D::operator/= | ( | const double | rhs | ) | [inline] |
Divided by equals operator.
Reimplemented in DPOINT3D.
| DPOINT2D& DPOINT2D::operator= | ( | const DPOINT2D_OLD & | rhs | ) | [inline] |
Assignment from DPOINT2D_OLD.
| LPOINT2D DPOINT2D::RoundToLongLimited | ( | ) | const [inline] |
Round to LPOINT2D within range of FAST_ROUND_LIMITED;.
| LPOINT2D DPOINT2D::RoundToLongNoLimit | ( | ) | const [inline] |
Round to LPOINT2D with accuracy as defined for FAST_ROUND_NOLIMIT.
| LPOINT2D DPOINT2D::RoundToLongPositive | ( | ) | const [inline] |
Round to LPOINT2D for positive X and Y values.
Not valid if has negative coordinate.
| void DPOINT2D::Set | ( | double | ix, | |
| double | iy | |||
| ) | [inline] |
Set X/Y values.
| void DPOINT2D::SetOrdinate | ( | int | index, | |
| double | value | |||
| ) | [inline] |
Set ordinate at specified index.
Allows access like array of appropriate dimension (2 or 3).
| index | Index (0-1) or (0-2) if 3D. |
| void DPOINT2D::SetX | ( | double | p_x | ) | [inline] |
Set X value.
| void DPOINT2D::SetY | ( | double | p_y | ) | [inline] |
Set Y value.
| void DPOINT2D::Shift | ( | const double | xval, | |
| const double | yval | |||
| ) | [inline] |
Shift point by a single value.
| void DPOINT2D::Shift | ( | const DPOINT2D & | value | ) | [inline] |
Shift point using another point.
Reimplemented in DPOINT3D.
| void DPOINT2D::SwapBytes | ( | ) | [inline] |
Perform byte-swapping.
Reimplemented in DPOINT3D.
| double DPOINT2D::x |
| double DPOINT2D::y |
1.6.1