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

2 dimensional vector containing shorts. More...

#include <geom.hpp>

Public Member Functions

 svec2 ()
 
 svec2 (short x, short y)
 
short & operator[] (int i)
 
short operator[] (int i) const
 
bool operator== (const svec2 &o) const
 
bool operator!= (const svec2 &o) const
 
bool iszero () const
 

Public Attributes

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

Detailed Description

2 dimensional vector containing shorts.

Constructor & Destructor Documentation

svec2::svec2 ( )
inline
svec2::svec2 ( short  x,
short  y 
)
inline

Member Function Documentation

bool svec2::iszero ( ) const
inline
bool svec2::operator!= ( const svec2 o) const
inline
bool svec2::operator== ( const svec2 o) const
inline
short& svec2::operator[] ( int  i)
inline
short svec2::operator[] ( int  i) const
inline

Member Data Documentation

union { ... }

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