FPOINT3D Struct Reference

3D point using 32-bit 'float' coordinates. More...

#include <mi32/point.h>

Inheritance diagram for FPOINT3D:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CHECKSIZE (12)
FPOINT3D CrossProduct (const FPOINT3D &pt) const
float DotProduct (const FPOINT3D &pt) const
 FPOINT3D (const FPOINT2D &rhs)
 FPOINT3D (const float dx, const float dy, const float dz)
 FPOINT3D (const FPOINT3D &rhs)
 FPOINT3D ()
float GetDistance () const
float GetDistance (const FPOINT3D &pt) const
float GetDistanceSquared () const
float GetDistanceSquared (const FPOINT3D &pt) const
bool Normalize ()
FPOINT3D operator * (const float rhs) const
FPOINT3D operator *= (const float rhs)
FPOINT3D operator+ (const FPOINT3D &rhs) const
FPOINT3D operator+= (const FPOINT3D &rhs)
FPOINT3D operator- (const FPOINT3D &rhs) const
FPOINT3D operator- () const
FPOINT3D operator-= (const FPOINT3D &rhs)
FPOINT3D operator/ (const float rhs) const
FPOINT3D operator/= (const float rhs)
FPOINT3Doperator= (const DPOINT3D &rhs)
void SwapBytes ()

Static Public Member Functions

bool Normalize (FPOINT3D &pt)

Public Attributes

float z

Detailed Description

3D point using 32-bit 'float' coordinates.

Definition at line 579 of file point.h.


Constructor & Destructor Documentation

FPOINT3D::FPOINT3D  )  [inline]
 

Default constructor, performs no initialization.

Definition at line 584 of file point.h.

FPOINT3D::FPOINT3D const FPOINT3D rhs  )  [inline]
 

Copy constructor.

Definition at line 589 of file point.h.

FPOINT3D::FPOINT3D const float  dx,
const float  dy,
const float  dz
[inline]
 

Initialize from separate X, Y, Z values.

Definition at line 594 of file point.h.

FPOINT3D::FPOINT3D const FPOINT2D rhs  )  [inline]
 

Initialize from FPOINT2D.

Definition at line 602 of file point.h.


Member Function Documentation

FPOINT3D::CHECKSIZE 12   ) 
 

Make compiler validate structure size.

FPOINT3D FPOINT3D::CrossProduct const FPOINT3D pt  )  const [inline]
 

Cross product.

Definition at line 713 of file point.h.

float FPOINT3D::DotProduct const FPOINT3D pt  )  const [inline]
 

Dot product.

Definition at line 708 of file point.h.

float FPOINT3D::GetDistance  )  const [inline]
 

Return distance between origin and point.

Reimplemented from FPOINT2D.

Definition at line 667 of file point.h.

float FPOINT3D::GetDistance const FPOINT3D pt  )  const [inline]
 

Return distance between two points.

Definition at line 657 of file point.h.

float FPOINT3D::GetDistanceSquared  )  const [inline]
 

Return squared distance between origin and point.

Reimplemented from FPOINT2D.

Definition at line 683 of file point.h.

float FPOINT3D::GetDistanceSquared const FPOINT3D pt  )  const [inline]
 

Return squared distance between two points.

Definition at line 673 of file point.h.

bool FPOINT3D::Normalize FPOINT3D pt  )  [inline, static]
 

Normalize.

Definition at line 698 of file point.h.

bool FPOINT3D::Normalize  )  [inline]
 

Normalize.

Reimplemented from FPOINT2D.

Definition at line 689 of file point.h.

FPOINT3D FPOINT3D::operator * const float  rhs  )  const [inline]
 

Multiplication operator.

Reimplemented from FPOINT2D.

Definition at line 627 of file point.h.

FPOINT3D FPOINT3D::operator *= const float  rhs  )  [inline]
 

Times equals operator.

Reimplemented from FPOINT2D.

Definition at line 647 of file point.h.

FPOINT3D FPOINT3D::operator+ const FPOINT3D rhs  )  const [inline]
 

Addition operator.

Definition at line 617 of file point.h.

FPOINT3D FPOINT3D::operator+= const FPOINT3D rhs  )  [inline]
 

Plus equals operator.

Definition at line 637 of file point.h.

FPOINT3D FPOINT3D::operator- const FPOINT3D rhs  )  const [inline]
 

Subtraction operator.

Definition at line 622 of file point.h.

FPOINT3D FPOINT3D::operator-  )  const [inline]
 

Negation operator.

Reimplemented from FPOINT2D.

Definition at line 613 of file point.h.

FPOINT3D FPOINT3D::operator-= const FPOINT3D rhs  )  [inline]
 

Minus equals operator.

Definition at line 642 of file point.h.

FPOINT3D FPOINT3D::operator/ const float  rhs  )  const [inline]
 

Division operator.

Reimplemented from FPOINT2D.

Definition at line 632 of file point.h.

FPOINT3D FPOINT3D::operator/= const float  rhs  )  [inline]
 

Divided by equals operator.

Reimplemented from FPOINT2D.

Definition at line 652 of file point.h.

FPOINT3D& FPOINT3D::operator= const DPOINT3D rhs  ) 
 

Assignment from DPOINT3D.

void FPOINT3D::SwapBytes  )  [inline]
 

Perform byte-swapping.

Reimplemented from FPOINT2D.

Definition at line 718 of file point.h.


Member Data Documentation

float FPOINT3D::z
 

Definition at line 581 of file point.h.


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