ScummVM API documentation
QDEngine::Vect3f Class Reference

Public Types

typedef float float3[3]
 

Public Member Functions

 Vect3f (float x_, float y_, float z_)
 
 Vect3f (const Vect2f &v, float z_=0)
 
 Vect3f (const float3 &v)
 
 operator const Vect2f & () const
 
Vect3fset (float x_, float y_, float z_)
 
Vect3fsetSpherical (float psi, float theta, float radius)
 
const float & operator[] (int i) const
 
float & operator[] (int i)
 
const float & operator() (int i) const
 
float & operator() (int i)
 
int xi () const
 
int yi () const
 
int zi () const
 
Vect3f operator- () const
 
Vect3fnegate (const Vect3f &v)
 
Vect3fnegate ()
 
bool eq (const Vect3f &v, float delta=FLT_COMPARE_TOLERANCE) const
 
Vect3fadd (const Vect3f &u, const Vect3f &v)
 
Vect3fadd (const Vect3f &v)
 
Vect3fsub (const Vect3f &u, const Vect3f &v)
 
Vect3fsub (const Vect3f &v)
 
Vect3foperator+= (const Vect3f &v)
 
Vect3foperator-= (const Vect3f &v)
 
Vect3f operator+ (const Vect3f &v) const
 
Vect3f operator- (const Vect3f &v) const
 
Vect3fmult (const Vect3f &u, const Vect3f &v)
 
Vect3fmult (const Vect3f &v)
 
Vect3fdiv (const Vect3f &u, const Vect3f &v)
 
Vect3fdiv (const Vect3f &v)
 
Vect3foperator*= (const Vect3f &v)
 
Vect3foperator/= (const Vect3f &v)
 
Vect3f operator* (const Vect3f &v) const
 
Vect3f operator/ (const Vect3f &v) const
 
Vect3fcross (const Vect3f &u, const Vect3f &v)
 
Vect3fprecross (const Vect3f &v)
 
Vect3fpostcross (const Vect3f &v)
 
Vect3foperator%= (const Vect3f &v)
 
Vect3f operator% (const Vect3f &v) const
 
float dot (const Vect3f &other) const
 
Vect3fscale (const Vect3f &v, float s)
 
Vect3fscale (float s)
 
Vect3foperator*= (float s)
 
Vect3foperator/= (float s)
 
Vect3f operator* (float s) const
 
Vect3f operator/ (float s) const
 
Vect3fnormalize (float r=1.0f)
 
Vect3fnormalize (const Vect3f &v, float r=1.0f)
 
float norm () const
 
float norm2 () const
 
float distance (const Vect3f &other) const
 
float distance2 (const Vect3f &other) const
 
float psi () const
 
float theta () const
 
float min () const
 
float max () const
 
float minAbs () const
 
float maxAbs () const
 
float sumAbs () const
 
Vect3fcrossAdd (const Vect3f &u, const Vect3f &v, const Vect3f &w)
 
Vect3fcrossAdd (const Vect3f &u, const Vect3f &v)
 
Vect3fscaleAdd (const Vect3f &v, const Vect3f &u, float lambda)
 
Vect3fscaleAdd (const Vect3f &u, float lambda)
 
Vect3finterpolate (const Vect3f &u, const Vect3f &v, float lambda)
 
void swap (Vect3f &other)
 

Public Attributes

float x
 
float y
 
float z
 

Friends

float dot (const Vect3f &u, const Vect3f &v)
 
Vect3f operator* (float s, const Vect3f &v)
 
void swap (Vect3f &u, Vect3f &v)
 

The documentation for this class was generated from the following file: