MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
defines.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015, Simon Fuhrmann
3 * TU Darmstadt - Graphics, Capture and Massively Parallel Computing
4 * All rights reserved.
5 *
6 * This software may be modified and distributed under the terms
7 * of the BSD 3-Clause license. See the LICENSE.txt file for details.
8 */
9
10#ifndef DMRECON_DEFINES_H
11#define DMRECON_DEFINES_H
12
13#include <vector>
14#include <set>
15
16#include "math/vector.h"
17
18#define MVS_NAMESPACE_BEGIN namespace mvs {
19#define MVS_NAMESPACE_END }
20
23
24typedef std::set< std::size_t > IndexSet;
25typedef std::vector< math::Vec3f > Samples;
26typedef std::vector< math::Vec2f > PixelCoords;
27
28const float pi = 3.141592653589793f;
29
30template<typename T>
31inline const T sqr(const T& a)
32{
33 return (a)*(a);
34}
35
37
38#endif
#define MVS_NAMESPACE_BEGIN
Definition defines.h:18
#define MVS_NAMESPACE_END
Definition defines.h:19
std::set< std::size_t > IndexSet
Definition defines.h:24
std::vector< math::Vec3f > Samples
Definition defines.h:25
const T sqr(const T &a)
Definition defines.h:31
std::vector< math::Vec2f > PixelCoords
Definition defines.h:26
const float pi
Definition defines.h:28