mi32/point.h File Reference

<mi32/point.h> Definitions for 2D and 3D point structures More...

#include <mi32/stddefns.h>
#include <mi32/membuf.h>
#include <math.h>

Include dependency graph for point.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

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

bool operator== (const WPOINT3D &lhs, const WPOINT3D &rhs)
bool operator!= (const WPOINT3D &lhs, const WPOINT3D &rhs)
bool operator== (const LPOINT2D &lhs, const LPOINT2D &rhs)
bool operator!= (const LPOINT2D &lhs, const LPOINT2D &rhs)
bool operator== (const FPOINT2D &lhs, const FPOINT2D &rhs)
bool operator!= (const FPOINT2D &lhs, const FPOINT2D &rhs)
bool operator== (const FPOINT3D &lhs, const FPOINT3D &rhs)
bool operator!= (const FPOINT3D &lhs, const FPOINT3D &rhs)
void SwapBytes (FPOINT2D &pt)
bool operator== (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator!= (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator< (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator> (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator<= (const DPOINT2D &lhs, const DPOINT2D &rhs)
bool operator>= (const DPOINT2D &lhs, const DPOINT2D &rhs)
void SwapBytes (DPOINT2D &pt)
bool operator== (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator!= (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator< (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator> (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator<= (const DPOINT3D &lhs, const DPOINT3D &rhs)
bool operator>= (const DPOINT3D &lhs, const DPOINT3D &rhs)
void SwapBytes (DPOINT3D &pt)


Detailed Description

<mi32/point.h> Definitions for 2D and 3D point structures

Definition in file point.h.


Enumeration Type Documentation

enum DIMENSION
 

Enumeration of dimension types.

Enumeration values:
DIMENSION_2D  2 dimensional
DIMENSION_3D  3 dimensional

Definition at line 155 of file point.h.

enum ORIENTATION
 

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

Enumeration values:
ORIENTATION_Unknown  Orientation is unknown or cannot be computed.
ORIENTATION_CounterClockwise  Counter-clockwise.
ORIENTATION_Clockwise  Clockwise.
ORIENTATION_EmptyPolygon  Polygon is empty, area is 0.

Definition at line 162 of file point.h.


Function Documentation

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

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

Definition at line 1316 of file point.h.

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

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

Definition at line 892 of file point.h.

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

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

Definition at line 691 of file point.h.

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

Exact inequality.

Definition at line 530 of file point.h.

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

Inequality.

Definition at line 336 of file point.h.

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

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

Definition at line 271 of file point.h.

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

Less than: Exact match, no fuzzy test enabled.

Definition at line 1324 of file point.h.

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

Less than: Exact match, no fuzzy test enabled.

Definition at line 900 of file point.h.

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

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

Definition at line 1340 of file point.h.

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

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

Definition at line 916 of file point.h.

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

Equal to: Exact match, no fuzzy test enabled.

Definition at line 1308 of file point.h.

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

Equal to: Exact match, no fuzzy test enabled.

Definition at line 884 of file point.h.

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

Equal to: Exact match, no fuzzy test enabled.

Definition at line 683 of file point.h.

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

Exact equality.

Definition at line 522 of file point.h.

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

Equality.

Definition at line 328 of file point.h.

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

Equal to: Exact match, no fuzzy test enabled.

Definition at line 263 of file point.h.

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

Greater than: Exact match, no fuzzy test enabled.

Definition at line 1332 of file point.h.

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

Greater than: Exact match, no fuzzy test enabled.

Definition at line 908 of file point.h.

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

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

Definition at line 1348 of file point.h.

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

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

Definition at line 924 of file point.h.

void SwapBytes DPOINT3D pt  )  [inline]
 

Perform byte-swapping.

Definition at line 1356 of file point.h.

void SwapBytes DPOINT2D pt  )  [inline]
 

Perform byte-swapping.

Definition at line 932 of file point.h.

void SwapBytes FPOINT2D pt  )  [inline]
 

Perform byte swapping.

Definition at line 699 of file point.h.


Generated on Thu Aug 12 06:23:42 2004 for TNTsdk by doxygen 1.3.4-20031026