FPOINT3D Struct Reference

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

#include <point.h>

Inheritance diagram for FPOINT3D:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Static Public Member Functions

bool Normalize (FPOINT3D &pt)

Public Attributes

float z

Detailed Description

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

Definition at line 541 of file point.h.


Constructor & Destructor Documentation

FPOINT3D::FPOINT3D  )  [inline]
 

Default constructor, performs no initialization.

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

FPOINT3D::FPOINT3D const FPOINT2D rhs  )  [inline]
 

Initialize from FPOINT2D.

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

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

Dot product.

Definition at line 665 of file point.h.

float FPOINT3D::GetDistance  )  const [inline]
 

Return distance between origin and point.

Reimplemented from FPOINT2D.

Definition at line 624 of file point.h.

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

Return distance between two points.

Definition at line 614 of file point.h.

float FPOINT3D::GetDistanceSquared  )  const [inline]
 

Return squared distance between origin and point.

Reimplemented from FPOINT2D.

Definition at line 640 of file point.h.

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

Return squared distance between two points.

Definition at line 630 of file point.h.

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

Normalize.

Definition at line 655 of file point.h.

bool FPOINT3D::Normalize  )  [inline]
 

Normalize.

Reimplemented from FPOINT2D.

Definition at line 646 of file point.h.

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

Multiplication operator.

Reimplemented from FPOINT2D.

Definition at line 584 of file point.h.

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

Times equals operator.

Reimplemented from FPOINT2D.

Definition at line 604 of file point.h.

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

Addition operator.

Definition at line 574 of file point.h.

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

Plus equals operator.

Definition at line 594 of file point.h.

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

Subtraction operator.

Definition at line 579 of file point.h.

FPOINT3D FPOINT3D::operator-  )  const [inline]
 

Negation operator.

Reimplemented from FPOINT2D.

Definition at line 570 of file point.h.

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

Minus equals operator.

Definition at line 599 of file point.h.

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

Division operator.

Reimplemented from FPOINT2D.

Definition at line 589 of file point.h.

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

Divided by equals operator.

Reimplemented from FPOINT2D.

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


Member Data Documentation

float FPOINT3D::z
 

Definition at line 543 of file point.h.


The documentation for this struct was generated from the following file:
Generated on Thu Aug 12 06:26:21 2004 for TNTsdk by doxygen 1.3.4-20031026