Libprimis
Imprimis' 3D destroyable world engine
|
integer vector2 More...
#include <geom.h>
Public Member Functions | |
ivec2 (int x, int y) | |
ivec2 (const vec2 &v) | |
ivec2 (const ivec &v) | |
int & | operator[] (int i) |
int | operator[] (int i) const |
bool | operator== (const ivec2 &o) const |
bool | operator!= (const ivec2 &o) const |
bool | iszero () const |
ivec2 & | shl (int n) |
ivec2 & | shr (int n) |
ivec2 & | mul (int n) |
ivec2 & | div (int n) |
ivec2 & | add (int n) |
ivec2 & | sub (int n) |
ivec2 & | mul (const ivec2 &v) |
ivec2 & | div (const ivec2 &v) |
ivec2 & | add (const ivec2 &v) |
ivec2 & | sub (const ivec2 &v) |
ivec2 & | mask (int n) |
ivec2 & | neg () |
ivec2 & | min (const ivec2 &o) |
ivec2 & | max (const ivec2 &o) |
ivec2 & | min (int n) |
ivec2 & | max (int n) |
ivec2 & | abs () |
int | dot (const ivec2 &o) const |
int | cross (const ivec2 &o) const |
Public Attributes | ||
union { | ||
struct { | ||
int x | ||
int y | ||
} | ||
int v [2] | ||
}; | ||
integer vector2