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 763 of file point.h.


Constructor & Destructor Documentation

DPOINT2D::DPOINT2D (  )  [inline]

Default constructor.

Definition at line 769 of file point.h.

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

Initialization from separate x and y values.

Definition at line 773 of file point.h.

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

Construction from WPOINT2D.

Definition at line 779 of file point.h.

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

Construction from LPOINT2D.

Definition at line 784 of file point.h.

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

Construction from FPOINT2D.

Definition at line 789 of file point.h.

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

Construction from DPOINT2D_OLD.

Definition at line 794 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 873 of file point.h.

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

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

Definition at line 863 of file point.h.

double DPOINT2D::GetDistance (  )  const [inline]

Return distance between origin and point.

Reimplemented in DPOINT3D.

Definition at line 889 of file point.h.

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

Return distance between two points.

Definition at line 880 of file point.h.

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

Return squared distance between two points.

Definition at line 895 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 905 of file point.h.

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

Multiplication operator.

Reimplemented in DPOINT3D.

Definition at line 833 of file point.h.

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

Times equals operator.

Reimplemented in DPOINT3D.

Definition at line 853 of file point.h.

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

Addition operator.

Definition at line 823 of file point.h.

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

Plus equals operator.

Definition at line 843 of file point.h.

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

Subtraction operator.

Definition at line 828 of file point.h.

DPOINT2D DPOINT2D::operator- (  )  [inline]

Negation operator.

Definition at line 819 of file point.h.

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

Minus equals operator.

Definition at line 848 of file point.h.

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

Division operator.

Reimplemented in DPOINT3D.

Definition at line 838 of file point.h.

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

Divided by equals operator.

Reimplemented in DPOINT3D.

Definition at line 858 of file point.h.

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

Assignment from DPOINT2D_OLD.

Definition at line 814 of file point.h.

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

Assignment from FPOINT2D.

Definition at line 809 of file point.h.

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

Assignment from LPOINT2D.

Definition at line 804 of file point.h.

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

Assignment from WPOINT2D.

Definition at line 799 of file point.h.

LPOINT2D DPOINT2D::RoundToLong (  )  const [inline]

Convert the a DPOINT2D into an LPOINT2D.

Definition at line 910 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 917 of file point.h.

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

Shift point by a single value.

Definition at line 932 of file point.h.

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

Shift point using another point.

Definition at line 923 of file point.h.

void DPOINT2D::SwapBytes (  )  [inline]

Perform byte-swapping.

Reimplemented in DPOINT3D.

Definition at line 942 of file point.h.

LPOINT2D DPOINT2D::TruncateToLong (  )  const [inline]

Convert the a DPOINT2D into an LPOINT2D.

Definition at line 946 of file point.h.


Member Data Documentation

double DPOINT2D::x

Definition at line 765 of file point.h.

double DPOINT2D::y

Definition at line 766 of file point.h.


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