LPOINT2D Struct Reference

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

#include <mi32/point.h>

Inheritance diagram for LPOINT2D:

Inheritance graph
LPOINT3D
[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 311 of file point.h.


Constructor & Destructor Documentation

LPOINT2D::LPOINT2D (  )  [inline]

Default constructor, performs no initialization.

Definition at line 317 of file point.h.

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

Initialization constructor.

Definition at line 322 of file point.h.

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

Construction from WPOINT2D.

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

void LPOINT2D::SwapBytes (  )  [inline]

Perform byte-swapping.

Reimplemented in LPOINT3D.

Definition at line 349 of file point.h.


Member Data Documentation

INT32 LPOINT2D::x

Definition at line 313 of file point.h.

INT32 LPOINT2D::y

Definition at line 314 of file point.h.


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