DPOINT2D Struct Reference

2D point using 64-bit 'double' coordinates. More...

#include <mi32/point.h>

Inheritance diagram for DPOINT2D:

Inheritance graph
DPOINT3DRVCTINNODERVCVECTNODERVCVECTPOINT
[legend]
List of all members.

Public Member Functions

 CHECKSIZE (16)
 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 ()
double GetAngle () const
double GetAngle (const DPOINT2D &pt) const
double GetDistance () const
double GetDistance (const DPOINT2D &pt) const
double GetDistanceSquared (const DPOINT2D &pt) const
double GetOrdinate (int index) const
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)
DPOINT2Doperator= (const DPOINT2D_OLD &rhs)
DPOINT2Doperator= (const FPOINT2D &rhs)
DPOINT2Doperator= (const LPOINT2D &rhs)
DPOINT2Doperator= (const WPOINT2D &rhs)
LPOINT2D RoundToLong () const
void SetOrdinate (int index, double value)
void Shift (const double xval, const double yval)
void Shift (const DPOINT2D &value)
void SwapBytes ()
LPOINT2D TruncateToLong () const

Public Attributes

double x
double y

Detailed Description

2D point using 64-bit 'double' coordinates.

Definition at line 760 of file point.h.


Constructor & Destructor Documentation

DPOINT2D::DPOINT2D (  )  [inline]

Default constructor.

Definition at line 766 of file point.h.

DPOINT2D::DPOINT2D ( const double  dx,
const double  dy 
) [inline]

Initialization from separate x and y values.

Definition at line 770 of file point.h.

DPOINT2D::DPOINT2D ( const WPOINT2D pt  )  [inline]

Construction from WPOINT2D.

Definition at line 776 of file point.h.

DPOINT2D::DPOINT2D ( const LPOINT2D pt  )  [inline]

Construction from LPOINT2D.

Definition at line 781 of file point.h.

DPOINT2D::DPOINT2D ( const FPOINT2D pt  )  [inline]

Construction from FPOINT2D.

Definition at line 786 of file point.h.

DPOINT2D::DPOINT2D ( const DPOINT2D_OLD pt  )  [inline]

Construction from DPOINT2D_OLD.

Definition at line 791 of file point.h.


Member Function Documentation

DPOINT2D::CHECKSIZE ( 16   ) 

Make compiler validate structure size.

double DPOINT2D::GetAngle (  )  const [inline]

Return angle of the segment from origin to point.

Definition at line 870 of file point.h.

double DPOINT2D::GetAngle ( const DPOINT2D pt  )  const [inline]

Return angle of the segment, 'this' is the basepoint.

Definition at line 860 of file point.h.

double DPOINT2D::GetDistance (  )  const [inline]

Return distance between origin and point.

Reimplemented in DPOINT3D.

Definition at line 886 of file point.h.

double DPOINT2D::GetDistance ( const DPOINT2D pt  )  const [inline]

Return distance between two points.

Definition at line 877 of file point.h.

double DPOINT2D::GetDistanceSquared ( const DPOINT2D pt  )  const [inline]

Return squared distance between two points.

Definition at line 892 of file point.h.

double DPOINT2D::GetOrdinate ( int  index  )  const [inline]

Get ordinate at specified index.

Allows access like array of appropriate dimension (2 or 3).

Parameters:
index  Index (0-1) or (0-2) if 3D.

Definition at line 902 of file point.h.

DPOINT2D DPOINT2D::operator * ( const double  rhs  )  const [inline]

Multiplication operator.

Reimplemented in DPOINT3D.

Definition at line 830 of file point.h.

DPOINT2D DPOINT2D::operator *= ( const double  rhs  )  [inline]

Times equals operator.

Reimplemented in DPOINT3D.

Definition at line 850 of file point.h.

DPOINT2D DPOINT2D::operator+ ( const DPOINT2D rhs  )  const [inline]

Addition operator.

Definition at line 820 of file point.h.

DPOINT2D DPOINT2D::operator+= ( const DPOINT2D rhs  )  [inline]

Plus equals operator.

Definition at line 840 of file point.h.

DPOINT2D DPOINT2D::operator- ( const DPOINT2D rhs  )  const [inline]

Subtraction operator.

Definition at line 825 of file point.h.

DPOINT2D DPOINT2D::operator- (  )  [inline]

Negation operator.

Definition at line 816 of file point.h.

DPOINT2D DPOINT2D::operator-= ( const DPOINT2D rhs  )  [inline]

Minus equals operator.

Definition at line 845 of file point.h.

DPOINT2D DPOINT2D::operator/ ( const double  rhs  )  const [inline]

Division operator.

Reimplemented in DPOINT3D.

Definition at line 835 of file point.h.

DPOINT2D DPOINT2D::operator/= ( const double  rhs  )  [inline]

Divided by equals operator.

Reimplemented in DPOINT3D.

Definition at line 855 of file point.h.

DPOINT2D& DPOINT2D::operator= ( const DPOINT2D_OLD rhs  )  [inline]

Assignment from DPOINT2D_OLD.

Definition at line 811 of file point.h.

DPOINT2D& DPOINT2D::operator= ( const FPOINT2D rhs  )  [inline]

Assignment from FPOINT2D.

Definition at line 806 of file point.h.

DPOINT2D& DPOINT2D::operator= ( const LPOINT2D rhs  )  [inline]

Assignment from LPOINT2D.

Definition at line 801 of file point.h.

DPOINT2D& DPOINT2D::operator= ( const WPOINT2D rhs  )  [inline]

Assignment from WPOINT2D.

Definition at line 796 of file point.h.

LPOINT2D DPOINT2D::RoundToLong (  )  const [inline]

Convert the a DPOINT2D into an LPOINT2D.

Definition at line 907 of file point.h.

void DPOINT2D::SetOrdinate ( int  index,
double  value 
) [inline]

Set ordinate at specified index.

Allows access like array of appropriate dimension (2 or 3).

Parameters:
index  Index (0-1) or (0-2) if 3D.

Definition at line 914 of file point.h.

void DPOINT2D::Shift ( const double  xval,
const double  yval 
) [inline]

Shift point by a single value.

Definition at line 929 of file point.h.

void DPOINT2D::Shift ( const DPOINT2D value  )  [inline]

Shift point using another point.

Definition at line 920 of file point.h.

void DPOINT2D::SwapBytes (  )  [inline]

Perform byte-swapping.

Reimplemented in DPOINT3D.

Definition at line 939 of file point.h.

LPOINT2D DPOINT2D::TruncateToLong (  )  const [inline]

Convert the a DPOINT2D into an LPOINT2D.

Definition at line 943 of file point.h.


Member Data Documentation

double DPOINT2D::x

Definition at line 762 of file point.h.

double DPOINT2D::y

Definition at line 763 of file point.h.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 26 04:47:04 2007 for TNTsdk by  doxygen 1.5.2