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
 
Vect3f & set (float x_, float y_, float z_)
 
Vect3f & setSpherical (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
 
Vect3f & negate (const Vect3f &v)
 
Vect3f & negate ()
 
bool eq (const Vect3f &v, float delta=FLT_COMPARE_TOLERANCE) const
 
Vect3f & add (const Vect3f &u, const Vect3f &v)
 
Vect3f & add (const Vect3f &v)
 
Vect3f & sub (const Vect3f &u, const Vect3f &v)
 
Vect3f & sub (const Vect3f &v)
 
Vect3f & operator+= (const Vect3f &v)
 
Vect3f & operator-= (const Vect3f &v)
 
Vect3f operator+ (const Vect3f &v) const
 
Vect3f operator- (const Vect3f &v) const
 
Vect3f & mult (const Vect3f &u, const Vect3f &v)
 
Vect3f & mult (const Vect3f &v)
 
Vect3f & div (const Vect3f &u, const Vect3f &v)
 
Vect3f & div (const Vect3f &v)
 
Vect3f & operator*= (const Vect3f &v)
 
Vect3f & operator/= (const Vect3f &v)
 
Vect3f operator* (const Vect3f &v) const
 
Vect3f operator/ (const Vect3f &v) const
 
Vect3f & cross (const Vect3f &u, const Vect3f &v)
 
Vect3f & precross (const Vect3f &v)
 
Vect3f & postcross (const Vect3f &v)
 
Vect3f & operator%= (const Vect3f &v)
 
Vect3f operator% (const Vect3f &v) const
 
float dot (const Vect3f &other) const
 
Vect3f & scale (const Vect3f &v, float s)
 
Vect3f & scale (float s)
 
Vect3f & operator*= (float s)
 
Vect3f & operator/= (float s)
 
Vect3f operator* (float s) const
 
Vect3f operator/ (float s) const
 
Vect3f & normalize (float r=1.0f)
 
Vect3f & normalize (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
 
Vect3f & crossAdd (const Vect3f &u, const Vect3f &v, const Vect3f &w)
 
Vect3f & crossAdd (const Vect3f &u, const Vect3f &v)
 
Vect3f & scaleAdd (const Vect3f &v, const Vect3f &u, float lambda)
 
Vect3f & scaleAdd (const Vect3f &u, float lambda)
 
Vect3f & interpolate (const Vect3f &u, const Vect3f &v, float lambda)
 
void swap (Vect3f &other)
 

Public Attributes

float x
 
float y
 
float z
 

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