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

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

#include <ivec.h>

Public Member Functions

 ivec4 ()
 
 ivec4 (int a)
 
 ivec4 (int v_1, int v_2, int v_3, int v_4)
 
 ivec4 (const ivec4 &a)
 
ivec4operator= (const ivec4 &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 [4]
 

Static Public Attributes

static const int n
 

Detailed Description

Definition at line 643 of file ivec.h.

Constructor & Destructor Documentation

◆ ivec4() [1/4]

graphics::ivec4::ivec4 ( )
inline

Definition at line 647 of file ivec.h.

◆ ivec4() [2/4]

graphics::ivec4::ivec4 ( int  a)
inline

Definition at line 649 of file ivec.h.

◆ ivec4() [3/4]

graphics::ivec4::ivec4 ( int  v_1,
int  v_2,
int  v_3,
int  v_4 
)
inline

Definition at line 654 of file ivec.h.

◆ ivec4() [4/4]

graphics::ivec4::ivec4 ( const ivec4 a)
inline

Definition at line 659 of file ivec.h.

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 673 of file ivec.h.

◆ operator()() [2/2]

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

Definition at line 674 of file ivec.h.

◆ operator=()

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

Definition at line 664 of file ivec.h.

◆ operator[]() [1/2]

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

Definition at line 671 of file ivec.h.

◆ operator[]() [2/2]

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

Definition at line 672 of file ivec.h.

Member Data Documentation

◆ n

const int graphics::ivec4::n
static

Definition at line 645 of file ivec.h.

◆ v

int graphics::ivec4::v[4]

Definition at line 644 of file ivec.h.


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