PICCANTE  0.4
The hottest HDR imaging library!
Classes | Namespaces | Macros | Typedefs | Functions
vec.hpp File Reference
#include <random>
#include <assert.h>
#include "../base.hpp"
#include "../util/math.hpp"
#include "../util/string.hpp"

Go to the source code of this file.

Classes

class  pic::Vec< N, T >
 The Vec class. More...
 

Namespaces

 pic
 

Macros

#define PIC_UTIL_VEC_HPP
 

Typedefs

typedef Vec< 2, int > pic::Vec2i
 Vec2i. More...
 
typedef Vec< 3, int > pic::Vec3i
 Vec3i. More...
 
typedef Vec< 4, int > pic::Vec4i
 Vec4i. More...
 
typedef Vec< 2, float > pic::Vec2f
 Vec2f. More...
 
typedef Vec< 3, float > pic::Vec3f
 Vec3f. More...
 

Functions

template<uint N>
PIC_INLINE bool pic::insideVecBBox (const Vec< N, float > &sample)
 insideVecBBox More...
 
template<uint N>
PIC_INLINE Vec< N, float > pic::normalize (Vec< N, float > x)
 
template<uint N>
PIC_INLINE Vec< N, float > pic::randomPoint (std::mt19937 *m)
 randomPoint More...
 
template<uint N>
void pic::vecrint (Vec< N, float > &ret)
 
template<uint N>
PIC_INLINE Vec< N, float > pic::annulusSampling (std::mt19937 *m, Vec< N, float > center, float radius)
 annulusSampling More...
 
template<uint N>
void pic::vecGamma (Vec< N, float > &ret, float g)
 
template<uint N>
void pic::vecSqrt (Vec< N, float > &ret)
 
template<uint N>
Vec< N, float > pic::vecValOver (Vec< N, float > &in, float value)
 
template<uint N, class T >
void pic::transferFromVecToPlain (std::vector< Vec< N, T > > &in, std::vector< T > &out)
 
template<uint N, class T >
void pic::transferFromPlainToVec (std::vector< T > &in, std::vector< Vec< N, T > > &out)
 

Macro Definition Documentation

◆ PIC_UTIL_VEC_HPP

#define PIC_UTIL_VEC_HPP