vtdata library
Public Member Functions | Public Attributes | List of all members
DPoint3 Class Reference

Public Member Functions

 DPoint3 (double fx, double fy, double fz)
 
 DPoint3 (const FPoint3 &p)
 
double Length () const
 
double LengthSquared () const
 
DPoint3Normalize ()
 
DPoint3SetLength (double len)
 
void Set (double fx, double fy, double fz)
 
double Dot (const DPoint3 &rhs) const
 
DPoint3 Cross (const DPoint3 &v) const
 
DPoint3operator= (const DPoint3 &v)
 
DPoint3operator= (const FPoint3 &v)
 
DPoint3 operator+ (const DPoint3 &v) const
 
DPoint3 operator- (const DPoint3 &v) const
 
DPoint3 operator* (double s) const
 
DPoint3 operator/ (double s) const
 
bool operator== (const DPoint3 &v2) const
 
bool operator!= (const DPoint3 &v2) const
 
double operator* (const DPoint3 &v) const
 
void operator+= (const DPoint3 &v)
 
void operator-= (const DPoint3 &v)
 
void operator*= (double s)
 
void operator/= (double s)
 

Public Attributes

double x
 
double y
 
double z
 

Detailed Description

A 3-component vector class, double-precision.