Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
ivec4 Struct Reference

4 dimensional integer vector. More...

#include <geom.hpp>

Public Member Functions

 ivec4 ()
 
 ivec4 (const ivec &p, int w=0)
 
 ivec4 (int x, int y, int z, int w)
 
 ivec4 (const vec4 &v)
 
bool operator== (const ivec4 &o) const
 
bool operator!= (const ivec4 &o) const
 

Public Attributes

union {
   struct {
int x
 
int y
 
int z
 
int w
 
   } 
 
   struct {
int r
 
int g
 
int b
 
int a
 
   } 
 
int v [4]
 
}; 
 

Detailed Description

4 dimensional integer vector.

Constructor & Destructor Documentation

ivec4::ivec4 ( )
inline
ivec4::ivec4 ( const ivec p,
int  w = 0 
)
inlineexplicit
ivec4::ivec4 ( int  x,
int  y,
int  z,
int  w 
)
inline
ivec4::ivec4 ( const vec4 v)
inlineexplicit

Member Function Documentation

bool ivec4::operator!= ( const ivec4 o) const
inline
bool ivec4::operator== ( const ivec4 o) const
inline

Member Data Documentation

union { ... }

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