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

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

#include <ivec.h>

Public Member Functions

 ivec2 ()
 
 ivec2 (int a)
 
 ivec2 (int v_1, int v_2)
 
 ivec2 (const ivec2 &a)
 
ivec2operator= (const ivec2 &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 [2]
 

Static Public Attributes

static const int n
 

Detailed Description

Definition at line 14 of file ivec.h.

Constructor & Destructor Documentation

◆ ivec2() [1/4]

graphics::ivec2::ivec2 ( )
inline

Definition at line 18 of file ivec.h.

◆ ivec2() [2/4]

graphics::ivec2::ivec2 ( int  a)
inline

Definition at line 20 of file ivec.h.

◆ ivec2() [3/4]

graphics::ivec2::ivec2 ( int  v_1,
int  v_2 
)
inline

Definition at line 25 of file ivec.h.

◆ ivec2() [4/4]

graphics::ivec2::ivec2 ( const ivec2 a)
inline

Definition at line 30 of file ivec.h.

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 44 of file ivec.h.

◆ operator()() [2/2]

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

Definition at line 45 of file ivec.h.

◆ operator=()

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

Definition at line 35 of file ivec.h.

◆ operator[]() [1/2]

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

Definition at line 42 of file ivec.h.

◆ operator[]() [2/2]

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

Definition at line 43 of file ivec.h.

Member Data Documentation

◆ n

const int graphics::ivec2::n
static

Definition at line 16 of file ivec.h.

◆ v

int graphics::ivec2::v[2]

Definition at line 15 of file ivec.h.


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