LPOINT2D Struct Reference

2D point using 32-bit integer coordinates. More...

#include <mi32/point.h>

Inheritance diagram for LPOINT2D:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CHECKSIZE (8)
 LPOINT2D (const DPOINT2D &pt)
 LPOINT2D (const WPOINT2D &pt)
 LPOINT2D (INT32 dx, INT32 dy)
 LPOINT2D ()
LPOINT2Doperator= (const DPOINT2D &pt)
LPOINT2Doperator= (const WPOINT2D &rhs)
void SwapBytes ()

Public Attributes

INT32 x
INT32 y

Detailed Description

2D point using 32-bit integer coordinates.

Definition at line 300 of file point.h.


Constructor & Destructor Documentation

LPOINT2D::LPOINT2D  )  [inline]
 

Default constructor, performs no initialization.

Definition at line 306 of file point.h.

LPOINT2D::LPOINT2D INT32  dx,
INT32  dy
[inline]
 

Initialization constructor.

Definition at line 311 of file point.h.

LPOINT2D::LPOINT2D const WPOINT2D pt  )  [inline]
 

Construction from WPOINT2D.

Definition at line 318 of file point.h.

LPOINT2D::LPOINT2D const DPOINT2D pt  )  [inline, explicit]
 

Explicit conversion from DPOINT2D to LPOINT2D, no rounding.


Member Function Documentation

LPOINT2D::CHECKSIZE  ) 
 

Make compiler validate structure size.

LPOINT2D& LPOINT2D::operator= const DPOINT2D pt  )  [inline]
 

Assignment from DPOINT2D without rounding.

LPOINT2D& LPOINT2D::operator= const WPOINT2D rhs  )  [inline]
 

Assignment from WPOINT2D.

Definition at line 328 of file point.h.

void LPOINT2D::SwapBytes  )  [inline]
 

Perform byte-swapping.

Reimplemented in LPOINT3D.

Definition at line 338 of file point.h.


Member Data Documentation

INT32 LPOINT2D::x
 

Definition at line 302 of file point.h.

INT32 LPOINT2D::y
 

Definition at line 303 of file point.h.


The documentation for this struct was generated from the following file:
Generated on Tue Dec 14 13:19:58 2004 for TNTsdk by  doxygen 1.3.8-20040913