30 l.v[0] * r.v[0] + l.v[1] * r.v[2],
31 l.v[0] * r.v[1] + l.v[1] * r.v[3],
32 l.v[2] * r.v[0] + l.v[3] * r.v[2],
33 l.v[2] * r.v[1] + l.v[3] * r.v[3],
44 struct xrt_vec2 result = {l.v[0] * r.x + l.v[1] * r.y, l.v[2] * r.x + l.v[3] * r.y};
51 float determinant = matrix->v[0] * matrix->v[3] - matrix->v[1] * matrix->v[2];
52 invertedMatrix->v[0] = matrix->v[3] / determinant;
53 invertedMatrix->v[1] = -matrix->v[1] / determinant;
54 invertedMatrix->v[2] = -matrix->v[2] / determinant;
55 invertedMatrix->v[3] = matrix->v[0] / determinant;
A tightly packed 2x2 matrix of floats.
Definition: xrt_defines.h:513
A 2 element vector with single floats.
Definition: xrt_defines.h:250
Common defines and enums for XRT.