blob: b1e1409403f46c9cb06fb16ab775184b68577a72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef LINALG_H_
#define LINALG_H_
// workaround Eigen SIMD alignment problems
#ifndef __APPLE__
#define EIGEN_DONT_VECTORIZE 1
#define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT 1
#endif
#ifdef _MSC_VER
#define EIGEN_DONT_ALIGN
#endif
#include <Eigen/Core>
#include <Eigen/Geometry>
using Eigen::Vector3d;
typedef Eigen::AlignedBox<double, 3> BoundingBox;
using Eigen::Matrix3f;
using Eigen::Matrix3d;
using Eigen::Transform3d;
#endif
|