HologramDepthmap Library
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
graphics::ivec3 Struct Reference

structure for 3-dimensional integer vector and its arithmetic. More...

#include <ivec.h>

Public Member Functions

 ivec3 ()
 
 ivec3 (int a)
 
 ivec3 (int v_1, int v_2, int v_3)
 
 ivec3 (const ivec3 &a)
 
ivec3operator= (const ivec3 &a)
 
int & operator[] (int i)
 
const int & operator[] (int i) const
 
int & operator() (int i)
 
const int & operator() (int i) const
 

Public Attributes

int v [3]
 

Static Public Attributes

static const int n
 

Detailed Description

Definition at line 331 of file ivec.h.

Constructor & Destructor Documentation

◆ ivec3() [1/4]

graphics::ivec3::ivec3 ( )
inline

Definition at line 335 of file ivec.h.

◆ ivec3() [2/4]

graphics::ivec3::ivec3 ( int  a)
inline

Definition at line 337 of file ivec.h.

◆ ivec3() [3/4]

graphics::ivec3::ivec3 ( int  v_1,
int  v_2,
int  v_3 
)
inline

Definition at line 342 of file ivec.h.

◆ ivec3() [4/4]

graphics::ivec3::ivec3 ( const ivec3 a)
inline

Definition at line 347 of file ivec.h.

Member Function Documentation

◆ operator()() [1/2]

int& graphics::ivec3::operator() ( int  i)
inline

Definition at line 361 of file ivec.h.

◆ operator()() [2/2]

const int& graphics::ivec3::operator() ( int  i) const
inline

Definition at line 362 of file ivec.h.

◆ operator=()

ivec3& graphics::ivec3::operator= ( const ivec3 a)
inline

Definition at line 352 of file ivec.h.

◆ operator[]() [1/2]

int& graphics::ivec3::operator[] ( int  i)
inline

Definition at line 359 of file ivec.h.

◆ operator[]() [2/2]

const int& graphics::ivec3::operator[] ( int  i) const
inline

Definition at line 360 of file ivec.h.

Member Data Documentation

◆ n

const int graphics::ivec3::n
static

Definition at line 333 of file ivec.h.

◆ v

int graphics::ivec3::v[3]

Definition at line 332 of file ivec.h.


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