Public Member Functions | Friends | List of all members
Int3D Class Reference

3D Integer vector class. More...

#include <vec3d.hpp>

Public Member Functions

 Int3D ()
 
 Int3D (int32_t i)
 
 Int3D (int32_t i, int32_t j)
 
 Int3D (int32_t i, int32_t j, int32_t k)
 
 Int3D (std::istream &s)
 
 ~Int3D ()
 
int32_t & operator[] (int i)
 
const int32_t & operator[] (int i) const
 
int32_t & operator() (int i)
 
const int32_t & operator() (int i) const
 
Int3D operator- (const Int3D &i)
 
Vec3D operator* (double x)
 
bool operator!= (const Int3D &i) const
 Inequality test. More...
 
bool operator== (const Int3D &i) const
 Equality test. More...
 
void save (std::ostream &s) const
 

Friends

Vec3D operator* (double x, const Int3D &i)
 
std::ostream & operator<< (std::ostream &os, const Vec3D &vec)
 

Detailed Description

3D Integer vector class.

Constructor & Destructor Documentation

Int3D::Int3D ( )
inline
Int3D::Int3D ( int32_t  i)
inline
Int3D::Int3D ( int32_t  i,
int32_t  j 
)
inline
Int3D::Int3D ( int32_t  i,
int32_t  j,
int32_t  k 
)
inline
Int3D::Int3D ( std::istream &  s)
inline
Int3D::~Int3D ( )
inline

Member Function Documentation

bool Int3D::operator!= ( const Int3D i) const
inline

Inequality test.

int32_t& Int3D::operator() ( int  i)
inline
const int32_t& Int3D::operator() ( int  i) const
inline
Vec3D Int3D::operator* ( double  x)
inline
Int3D Int3D::operator- ( const Int3D i)
inline
bool Int3D::operator== ( const Int3D i) const
inline

Equality test.

int32_t& Int3D::operator[] ( int  i)
inline
const int32_t& Int3D::operator[] ( int  i) const
inline
void Int3D::save ( std::ostream &  s) const
inline

Friends And Related Function Documentation

Vec3D operator* ( double  x,
const Int3D i 
)
friend
std::ostream& operator<< ( std::ostream &  os,
const Vec3D vec 
)
friend

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