mi32/point.h File Reference

Definitions for 2D and 3D point structures. More...

#include <mi32/inibase.h>
#include <mi32/membuf.h>
#include <mi32/math.h>
Include dependency graph for point.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DPOINT2D
 2D point using 64-bit 'double' coordinates. More...
struct  DPOINT2D_OLD
 Define simple structures for use in unions These structures must not have constructors/destructors. More...
struct  DPOINT3D
 3D point using 64-bit 'double' coordinates. More...
struct  DPOINT3D_OLD
struct  DPOINT3DH
 3D homogeneous point using 64-bit 'double' coordinates. More...
struct  FPOINT2D
 2D point using 32-bit 'float' coordinates. More...
struct  FPOINT3D
 3D point using 32-bit 'float' coordinates. More...
struct  FPOINT3DH
 3D homogeneous point using 32-bit 'float' coordinates. More...
struct  LPOINT2D
 2D point using 32-bit integer coordinates. More...
struct  LPOINT3D
 3D point using 32-bit integer coordinates. More...
struct  WPOINT2D
 2D point using 16-bit integer coordinates. More...
struct  WPOINT3D
 3D point using 16-bit integer coordinates. More...

Enumerations

enum  DIMENSION { DIMENSION_2D = 0, DIMENSION_3D = 1 }
enum  ORIENTATION { ORIENTATION_Unknown = 0, ORIENTATION_CounterClockwise = 1, ORIENTATION_Clockwise = 2, ORIENTATION_EmptyPolygon = 3 }

Functions

int IniRead (INIHANDLE hdl, const char *group, const char *field, DPOINT3D &value, const DPOINT3D &dft)
int IniRead (INIHANDLE hdl, const char *group, const char *field, DPOINT3D &value)
int IniRead (INIHANDLE hdl, const char *group, const char *field, DPOINT2D &value, const DPOINT2D &dft)
int IniRead (INIHANDLE hdl, const char *group, const char *field, DPOINT2D &value)
int IniWrite (INIHANDLE hdl, const char *group, const char *field, const DPOINT3D &value)
int IniWrite (INIHANDLE hdl, const char *group, const char *field, const DPOINT2D &value)
bool operator!= (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator!= (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator!= (const FPOINT3D &lhs, const FPOINT3D &rhs)
bool operator!= (const FPOINT2D &lhs, const FPOINT2D &rhs)
bool operator!= (const LPOINT2D &lhs, const LPOINT2D &rhs)
bool operator!= (const WPOINT3D &lhs, const WPOINT3D &rhs)
bool operator!= (const WPOINT2D &lhs, const WPOINT2D &rhs)
bool operator< (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator< (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator<= (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator<= (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator== (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator== (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator== (const FPOINT3D &lhs, const FPOINT3D &rhs)
bool operator== (const FPOINT2D &lhs, const FPOINT2D &rhs)
bool operator== (const LPOINT2D &lhs, const LPOINT2D &rhs)
bool operator== (const WPOINT3D &lhs, const WPOINT3D &rhs)
bool operator== (const WPOINT2D &lhs, const WPOINT2D &rhs)
bool operator> (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator> (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator>= (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator>= (const DPOINT2D &lhs, const DPOINT2D &rhs)
void SwapBytes (DPOINT3D &pt)
void SwapBytes (DPOINT2D &pt)
void SwapBytes (FPOINT3D &pt)
void SwapBytes (FPOINT2D &pt)
void SwapBytes (LPOINT3D &pt)
void SwapBytes (LPOINT2D &pt)

Detailed Description

Definitions for 2D and 3D point structures.


Enumeration Type Documentation

enum DIMENSION

Enumeration of dimension types.

Enumerator:
DIMENSION_2D 

2 dimensional

DIMENSION_3D 

3 dimensional

Enumeration of orientation types assuming right-hand Cartesian system where counter-clocksize sweep from +X axis to +Y axis is 90 degrees.

Enumerator:
ORIENTATION_Unknown 

Orientation is unknown or cannot be computed.

ORIENTATION_CounterClockwise 

Counter-clockwise.

ORIENTATION_Clockwise 

Clockwise.

ORIENTATION_EmptyPolygon 

Polygon is empty, area is 0.


Function Documentation

int IniRead ( INIHANDLE  hdl,
const char *  group,
const char *  field,
DPOINT3D value,
const DPOINT3D dft 
) [inline]

Read 'DPOINT3D' value from INI file with default.

int IniRead ( INIHANDLE  hdl,
const char *  group,
const char *  field,
DPOINT3D value 
) [inline]

Read 'DPOINT3D' value from INI file.

int IniRead ( INIHANDLE  hdl,
const char *  group,
const char *  field,
DPOINT2D value,
const DPOINT2D dft 
) [inline]

Read 'DPOINT2D' value from INI file with default.

int IniRead ( INIHANDLE  hdl,
const char *  group,
const char *  field,
DPOINT2D value 
) [inline]

Read 'DPOINT2D' value from INI file.

int IniWrite ( INIHANDLE  hdl,
const char *  group,
const char *  field,
const DPOINT3D value 
) [inline]

Write 'DPOINT3D' value to INI file.

int IniWrite ( INIHANDLE  hdl,
const char *  group,
const char *  field,
const DPOINT2D value 
) [inline]

Write 'DPOINT2D' value to INI file.

bool operator!= ( const DPOINT3D lhs,
const DPOINT3D rhs 
) [inline]

Exact inequality comparison.

bool operator!= ( const DPOINT2D lhs,
const DPOINT2D rhs 
) [inline]

Not equal to: Exact match, no fuzzy test enabled.

bool operator!= ( const FPOINT3D lhs,
const FPOINT3D rhs 
) [inline]

Not equal to: Exact match, no fuzzy test enabled.

bool operator!= ( const FPOINT2D lhs,
const FPOINT2D rhs 
) [inline]

Exact inequality.

bool operator!= ( const LPOINT2D lhs,
const LPOINT2D rhs 
) [inline]

Inequality.

bool operator!= ( const WPOINT3D lhs,
const WPOINT3D rhs 
) [inline]

Exact inequality comparison.

bool operator!= ( const WPOINT2D lhs,
const WPOINT2D rhs 
) [inline]

Exact inequality comparison.

bool operator< ( const DPOINT3D lhs,
const DPOINT3D rhs 
) [inline]

Less than: Exact match, no fuzzy test enabled.

bool operator< ( const DPOINT2D lhs,
const DPOINT2D rhs 
) [inline]

Less than: Exact match, no fuzzy test enabled.

bool operator<= ( const DPOINT3D lhs,
const DPOINT3D rhs 
) [inline]

Less than or equal to: Exact match, no fuzzy test enabled.

bool operator<= ( const DPOINT2D lhs,
const DPOINT2D rhs 
) [inline]

Less than or equal to: Exact match, no fuzzy test enabled.

bool operator== ( const DPOINT3D lhs,
const DPOINT3D rhs 
) [inline]

Exact equality comparison.

bool operator== ( const DPOINT2D lhs,
const DPOINT2D rhs 
) [inline]

Equal to: Exact match, no fuzzy test enabled.

bool operator== ( const FPOINT3D lhs,
const FPOINT3D rhs 
) [inline]

Equal to: Exact match, no fuzzy test enabled.

bool operator== ( const FPOINT2D lhs,
const FPOINT2D rhs 
) [inline]

Exact equality.

bool operator== ( const LPOINT2D lhs,
const LPOINT2D rhs 
) [inline]

Equality.

bool operator== ( const WPOINT3D lhs,
const WPOINT3D rhs 
) [inline]

Exact equality comparison.

bool operator== ( const WPOINT2D lhs,
const WPOINT2D rhs 
) [inline]

Exact equality comparison.

bool operator> ( const DPOINT3D lhs,
const DPOINT3D rhs 
) [inline]

Greater than: Exact match, no fuzzy test enabled.

bool operator> ( const DPOINT2D lhs,
const DPOINT2D rhs 
) [inline]

Greater than: Exact match, no fuzzy test enabled.

bool operator>= ( const DPOINT3D lhs,
const DPOINT3D rhs 
) [inline]

Greater than or equal to: Exact match, no fuzzy test enabled.

bool operator>= ( const DPOINT2D lhs,
const DPOINT2D rhs 
) [inline]

Greater than or equal to: Exact match, no fuzzy test enabled.

void SwapBytes ( DPOINT3D pt  )  [inline]

Perform byte-swapping.

void SwapBytes ( DPOINT2D pt  )  [inline]

Perform byte-swapping on DPOINT2D.

void SwapBytes ( FPOINT3D pt  )  [inline]

Perform byte swapping.

void SwapBytes ( FPOINT2D pt  )  [inline]

Perform byte-swapping.

void SwapBytes ( LPOINT3D pt  )  [inline]

Perform byte-swapping.

void SwapBytes ( LPOINT2D pt  )  [inline]

Perform byte-swapping.


Generated on Sun Oct 7 21:27:42 2012 for TNTsdk 2012 by  doxygen 1.6.1