ScummVM API documentation
QDEngine::Vect2f Class Reference

Public Types

typedef float float2[2]
 

Public Member Functions

 Vect2f (float x_, float y_)
 
 Vect2f (const float2 &v)
 
 Vect2f (const Vect2i &v)
 
 Vect2f (const Vect2s &v)
 
Vect2fset (float x_, float y_)
 
Vect2f operator- () const
 
int xi () const
 
int yi () const
 
const float & operator[] (int i) const
 
float & operator[] (int i)
 
Vect2foperator+= (const Vect2f &v)
 
Vect2foperator-= (const Vect2f &v)
 
Vect2foperator*= (const Vect2f &v)
 
Vect2foperator/= (const Vect2f &v)
 
Vect2foperator*= (float f)
 
Vect2foperator/= (float f)
 
Vect2f operator+ (const Vect2f &v) const
 
Vect2f operator- (const Vect2f &v) const
 
Vect2f operator* (const Vect2f &v) const
 
Vect2f operator/ (const Vect2f &v) const
 
Vect2f operator* (float f) const
 
Vect2f operator/ (float f) const
 
bool eq (const Vect2f &v, float delta=FLT_COMPARE_TOLERANCE) const
 
float dot (const Vect2f &v) const
 
float operator% (const Vect2f &v) const
 
Vect2fscaleAdd (const Vect2f &u, float lambda)
 
Vect2finterpolate (const Vect2f &u, const Vect2f &v, float lambda)
 
float norm () const
 
float norm2 () const
 
Vect2fnormalize (float norma)
 
float distance (const Vect2f &v) const
 
float distance2 (const Vect2f &v) const
 
void swap (Vect2f &v)
 

Public Attributes

float x
 
float y
 

Friends

float dot (const Vect2f &u, const Vect2f &v)
 

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