protot/src/math_types.h

56 lines
1.5 KiB
C
Raw Normal View History

2016-08-29 22:31:11 +02:00
#ifndef MESHUP_CONFIG_H
#define MESHUP_CONFIG_H
#ifdef NEW_SIMPLE_MATH
2016-08-29 22:31:11 +02:00
#include "SimpleMath/SimpleMath.h"
typedef SimpleMath::Matrix<float, 2, 1> Vector2f;
typedef SimpleMath::Matrix<float, 2, 2> Matrix22f;
2016-08-29 22:31:11 +02:00
typedef SimpleMath::Matrix<float, 3, 1> Vector3f;
typedef SimpleMath::Matrix<float, 3, 3> Matrix33f;
2016-08-29 22:31:11 +02:00
typedef SimpleMath::Matrix<float, 4, 1> Vector4f;
typedef SimpleMath::Matrix<float, 4, 4> Matrix44f;
2016-08-29 22:31:11 +02:00
typedef SimpleMath::GL::Quaternion Quaternion;
2016-08-29 22:31:11 +02:00
typedef SimpleMath::Matrix<float> VectorNf;
typedef SimpleMath::Matrix<float> MatrixNNf;
2016-08-29 22:31:11 +02:00
typedef SimpleMath::Matrix<double, 3, 1> Vector3d;
typedef SimpleMath::Matrix<double, 3, 3> Matrix33d;
typedef SimpleMath::Matrix<double> VectorNd;
typedef SimpleMath::Matrix<double> MatrixNNd;
#else
#include "SimpleMathOld/SimpleMath.h"
typedef SimpleMath::Fixed::Matrix<float, 2, 1> Vector2f;
typedef SimpleMath::Fixed::Matrix<float, 2, 2> Matrix22f;
typedef SimpleMath::Fixed::Matrix<float, 3, 1> Vector3f;
typedef SimpleMath::Fixed::Matrix<float, 3, 3> Matrix33f;
typedef SimpleMath::Fixed::Matrix<float, 4, 1> Vector4f;
typedef SimpleMath::Fixed::Matrix<float, 4, 4> Matrix44f;
typedef SimpleMath::GL::Quaternion Quaternion;
typedef SimpleMath::Dynamic::Matrix<float> VectorNf;
typedef SimpleMath::Dynamic::Matrix<float> MatrixNNf;
typedef SimpleMath::Fixed::Matrix<double, 3, 1> Vector3d;
typedef SimpleMath::Fixed::Matrix<double, 3, 3> Matrix33d;
typedef SimpleMath::Dynamic::Matrix<double> VectorNd;
typedef SimpleMath::Dynamic::Matrix<double> MatrixNNd;
#endif
2016-08-29 22:31:11 +02:00
#endif