Libprimis
Imprimis' 3D destroyable world engine
Loading...
Searching...
No Matches
ivec2 Struct Reference

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
 
ivec2shl (int n)
 
ivec2shr (int n)
 
ivec2mul (int n)
 
ivec2div (int n)
 
ivec2add (int n)
 
ivec2sub (int n)
 
ivec2mul (const ivec2 &v)
 
ivec2div (const ivec2 &v)
 
ivec2add (const ivec2 &v)
 
ivec2sub (const ivec2 &v)
 
ivec2mask (int n)
 
ivec2neg ()
 
ivec2min (const ivec2 &o)
 
ivec2max (const ivec2 &o)
 
ivec2min (int n)
 
ivec2max (int n)
 
ivec2abs ()
 
int dot (const ivec2 &o) const
 
int cross (const ivec2 &o) const
 

Public Attributes

union { 
 
   struct { 
 
      int   x 
 
      int   y 
 
   }  
 
   int   v [2] 
 
};  
 

Detailed Description

integer vector2


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