1 #ifndef ANDROID_DVR_MATRIX_HELPERS_H_
2 #define ANDROID_DVR_MATRIX_HELPERS_H_
3
4 #include <private/dvr/eigen.h>
5 #include <private/dvr/types.h>
6
7 namespace android {
8 namespace dvr {
9
10 // A helper function for creating a mat4 directly.
MakeMat4(float m00,float m01,float m02,float m03,float m10,float m11,float m12,float m13,float m20,float m21,float m22,float m23,float m30,float m31,float m32,float m33)11 inline mat4 MakeMat4(float m00, float m01, float m02, float m03, float m10,
12 float m11, float m12, float m13, float m20, float m21,
13 float m22, float m23, float m30, float m31, float m32,
14 float m33) {
15 Eigen::Matrix4f matrix;
16
17 matrix << m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30,
18 m31, m32, m33;
19
20 return mat4(matrix);
21 }
22
23 } // namespace dvr
24 } // namespace android
25
26 #endif // ANDROID_DVR_LOG_HELPERS_H_
27