ScummVM API documentation
QDEngine::Vect2s Class Reference

Public Member Functions

 Vect2s (int x_, int y_)
 
 Vect2s (const Vect2f &v)
 
 Vect2s (const Vect2i &v)
 
void set (int x_, int y_)
 
Vect2s operator- () const
 
const int16 & operator[] (int i) const
 
int16 & operator[] (int i)
 
Vect2soperator+= (const Vect2s &v)
 
Vect2soperator-= (const Vect2s &v)
 
Vect2soperator*= (const Vect2s &v)
 
Vect2soperator*= (float f)
 
Vect2soperator/= (float f)
 
Vect2s operator- (const Vect2s &v) const
 
Vect2s operator+ (const Vect2s &v) const
 
Vect2s operator* (const Vect2s &v) const
 
Vect2s operator* (float f) const
 
Vect2s operator/ (float f) const
 
int operator== (const Vect2s &v) const
 
int norm () const
 
int norm2 () const
 
int distance (const Vect2s &v) const
 
void normalize (int norma)
 
void swap (Vect2s &v)
 

Public Attributes

int16 x
 
int16 y
 

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