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)
 
Vect2f & set (float x_, float y_)
 
Vect2f operator- () const
 
int xi () const
 
int yi () const
 
const float & operator[] (int i) const
 
float & operator[] (int i)
 
Vect2f & operator+= (const Vect2f &v)
 
Vect2f & operator-= (const Vect2f &v)
 
Vect2f & operator*= (const Vect2f &v)
 
Vect2f & operator/= (const Vect2f &v)
 
Vect2f & operator*= (float f)
 
Vect2f & operator/= (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
 
Vect2f & scaleAdd (const Vect2f &u, float lambda)
 
Vect2f & interpolate (const Vect2f &u, const Vect2f &v, float lambda)
 
float norm () const
 
float norm2 () const
 
Vect2f & normalize (float norma)
 
float distance (const Vect2f &v) const
 
float distance2 (const Vect2f &v) const
 
void swap (Vect2f &v)
 

Public Attributes

float x
 
float y
 

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