ScummVM API documentation
QDEngine::Vect2i Class Reference

Public Member Functions

 Vect2i (int x_, int y_)
 
 Vect2i (float x_, float y_)
 
 Vect2i (const Vect2f &v)
 
 Vect2i (const Vect2s &v)
 
void set (int x_, int y_)
 
void set (float x_, float y_)
 
Vect2i operator- () const
 
const int & operator[] (int i) const
 
int & operator[] (int i)
 
Vect2ioperator+= (const Vect2i &v)
 
Vect2ioperator-= (const Vect2i &v)
 
Vect2ioperator*= (const Vect2i &v)
 
Vect2ioperator/= (const Vect2i &v)
 
Vect2i operator+ (const Vect2i &v) const
 
Vect2i operator- (const Vect2i &v) const
 
Vect2i operator* (const Vect2i &v) const
 
Vect2ioperator*= (int f)
 
Vect2i operator* (int f) const
 
Vect2ioperator>>= (int n)
 
Vect2i operator>> (int n) const
 
Vect2ioperator*= (float f)
 
Vect2ioperator/= (float f)
 
Vect2i operator* (float f) const
 
Vect2i operator/ (float f) const
 
int dot (const Vect2i &v) const
 
int operator% (const Vect2i &v) const
 
int norm () const
 
int norm2 () const
 
void normalize (int norma)
 
int distance2 (const Vect2i &v) const
 
int operator== (const Vect2i &v) const
 
int operator!= (const Vect2i &v) const
 
void swap (Vect2i &v)
 

Public Attributes

int x
 
int y
 

Friends

int dot (const Vect2i &u, const Vect2i &v)
 

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