vtdata library
Public Member Functions | Public Attributes | List of all members
FPoint3 Class Reference
Inheritance diagram for FPoint3:
Inheritance graph
[legend]

Public Member Functions

 FPoint3 (float fx, float fy, float fz)
 
 FPoint3 (const DPoint3 &p)
 
float Length () const
 
float LengthSquared () const
 
FPoint3Normalize ()
 
FPoint3SetLength (float len)
 
void Set (float fx, float fy, float fz)
 
float Dot (const FPoint3 &rhs) const
 
float Dot (const float *fp) const
 
FPoint3 Cross (const FPoint3 &v) const
 
void UnitNormal (const FPoint3 &p0, const FPoint3 &p1, const FPoint3 &p2)
 
FPoint3operator= (const FPoint3 &v)
 
FPoint3operator= (const DPoint3 &v)
 
FPoint3 operator+ (const FPoint3 &v) const
 
FPoint3 operator- (const FPoint3 &v) const
 
FPoint3 operator* (float s) const
 
FPoint3 operator* (double s) const
 
FPoint3 operator/ (float s) const
 
FPoint3 operator- () const
 
bool operator== (const FPoint3 &v2) const
 
bool operator!= (const FPoint3 &v2) const
 
void operator+= (const FPoint3 &v)
 
void operator-= (const FPoint3 &v)
 
void operator*= (float s)
 
void operator/= (float s)
 
float & operator[] (int nIndex)
 
const float & operator[] (int nIndex) const
 

Public Attributes

float x
 
float y
 
float z
 

Detailed Description

A 3-component vector class, single-precision (float).

Member Function Documentation

void FPoint3::UnitNormal ( const FPoint3 p0,
const FPoint3 p1,
const FPoint3 p2 
)
inline

Determine the unit cross product (normal vector) to the triangle made up of the three given points.