point.h File Reference

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

#include <math.h>
#include <mi32/stddefns.h>
#include <mi32/membuf.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 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 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 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

<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 173 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 180 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 1391 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 954 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 734 of file point.h.

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

Exact inequality.

Definition at line 561 of file point.h.

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

Inequality.

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

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

Less than: Exact match, no fuzzy test enabled.

Definition at line 1399 of file point.h.

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

Less than: Exact match, no fuzzy test enabled.

Definition at line 962 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 1415 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 978 of file point.h.

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

Equal to: Exact match, no fuzzy test enabled.

Definition at line 1383 of file point.h.

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

Equal to: Exact match, no fuzzy test enabled.

Definition at line 946 of file point.h.

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

Equal to: Exact match, no fuzzy test enabled.

Definition at line 726 of file point.h.

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

Exact equality.

Definition at line 553 of file point.h.

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

Equality.

Definition at line 346 of file point.h.

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

Equal to: Exact match, no fuzzy test enabled.

Definition at line 281 of file point.h.

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

Greater than: Exact match, no fuzzy test enabled.

Definition at line 1407 of file point.h.

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

Greater than: Exact match, no fuzzy test enabled.

Definition at line 970 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 1423 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 986 of file point.h.

void SwapBytes DPOINT3D pt  )  [inline]
 

Perform byte-swapping.

Definition at line 1431 of file point.h.

void SwapBytes DPOINT2D pt  )  [inline]
 

Perform byte-swapping.

Definition at line 994 of file point.h.

void SwapBytes FPOINT3D pt  )  [inline]
 

Perform byte swapping.

Definition at line 742 of file point.h.

void SwapBytes FPOINT2D pt  )  [inline]
 

Perform byte-swapping.

Definition at line 569 of file point.h.

void SwapBytes LPOINT3D pt  )  [inline]
 

Perform byte-swapping.

Definition at line 401 of file point.h.

void SwapBytes LPOINT2D pt  )  [inline]
 

Perform byte-swapping.

Definition at line 362 of file point.h.


Generated on Tue Dec 14 13:19:10 2004 for TNTsdk by  doxygen 1.3.8-20040913