15#ifndef GPUCOMMONTRANSFORM3D_H
16#define GPUCOMMONTRANSFORM3D_H
28 for (int32_t
i = 0;
i < 12;
i++) {
35 out[0] =
m[kXX] * in[0] +
m[kXY] * in[1] +
m[kXZ] * in[2] +
m[kDX];
36 out[1] =
m[kYX] * in[0] +
m[kYY] * in[1] +
m[kYZ] * in[2] +
m[kDY];
37 out[2] =
m[kZX] * in[0] +
m[kZY] * in[1] +
m[kZZ] * in[2] +
m[kDZ];
42 out[0] =
m[kXX] * in[0] +
m[kXY] * in[1] +
m[kXZ] * in[2];
43 out[1] =
m[kYX] * in[0] +
m[kYY] * in[1] +
m[kYZ] * in[2];
44 out[2] =
m[kZX] * in[0] +
m[kZY] * in[1] +
m[kZZ] * in[2];
49 const float tmp[3] = {in[0] -
m[kDX], in[1] -
m[kDY], in[2] -
m[kDZ]};
50 out[0] =
m[kXX] * tmp[0] +
m[kYX] * tmp[1] +
m[kZX] * tmp[2];
51 out[1] =
m[kXY] * tmp[0] +
m[kYY] * tmp[1] +
m[kZY] * tmp[2];
52 out[2] =
m[kXZ] * tmp[0] +
m[kYZ] * tmp[1] +
m[kZZ] * tmp[2];
57 out[0] =
m[kXX] * in[0] +
m[kYX] * in[1] +
m[kZX] * in[2];
58 out[1] =
m[kXY] * in[0] +
m[kYY] * in[1] +
m[kZY] * in[2];
59 out[2] =
m[kXZ] * in[0] +
m[kYZ] * in[1] +
m[kZZ] * in[2];
67 enum Transform3DMatrixIndex { kXX = 0,
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
tB100 LocalToMaster(o2::math_utils::Point3D< double >{0, 0, 0}, poB)