Jakob Bornecrantz
328f5d5315
m/base: Add math_quat_invert
2020-09-02 22:07:35 +01:00
Christoph Haag
370f6820aa
m: Generalize math_matrix_4x4_quad_model, making scaling a vec3
2020-08-21 02:11:03 +02:00
Lubosz Sarnecki
87a5c425cf
a/math: Add math_vec3_normalize.
2020-07-31 12:45:47 +02:00
Christoph Haag
7a1dbbe8a1
st/oxr: Ensure quaternion is normalized in xrLocateViews()
...
In rare cases the state tracker's pose transformations resulted in a quaternion
that accumulated float precision errors such that the norm of the quaternion was
not within float precision of 1.0 anymore.
Introduce a function math_quat_ensure_normalized() that can be used after multiple
operations have been performed on a quaternion.
2020-06-17 13:03:34 +02:00
Lubosz Sarnecki
fc271ad5da
aux/math: Add function to calculate quad model matrix.
2020-05-28 22:16:57 +00:00
Lubosz Sarnecki
6aa1b4e571
aux/math: Add function to calculate view matrix from pose.
2020-05-11 20:21:58 +01:00
Lubosz Sarnecki
0b6d97ec8f
aux/math: Add matrix_4x4 identity and matrix_4x4_muliply.
2020-05-11 20:21:58 +01:00
Jakob Bornecrantz
23a66eb031
aux/math: Add math_matrix_3x3_rotate_vec3 function
2020-03-25 13:58:51 +00:00
Jakob Bornecrantz
21e77b85d7
aux/math: Add quat from angle vector function
2020-03-25 13:58:51 +00:00
Ryan Pavlik
85761db12c
aux/math: Update comment
2020-01-31 17:19:48 +01:00
Jakob Bornecrantz
5bf65b41fa
math: Add some more functions
2020-01-14 15:59:41 +00:00
Jakob Bornecrantz
7618f4c5a4
math: Make it possible to get a rotation from a rotation matrix
2020-01-09 15:22:14 +00:00
Ryan Pavlik
e9d64c4c41
a/math: Clang-tidy
2019-11-14 12:14:58 +00:00
Jakob Bornecrantz
acd2c50470
aux/math: Rework offset transformation
...
This reverts commit 0d9aaae470
, and changes it.
2019-10-08 11:19:14 +01:00
Jakob Bornecrantz
1bcf537785
aux/math: Add standard gravity value
2019-09-16 16:36:47 +01:00
Ryan Pavlik
1700be7022
aux/math: Fix typo
2019-08-16 17:12:53 -05:00
Jakob Bornecrantz
776c46713f
aux/math: Refactor math_pose_validate into two functions
2019-07-21 14:57:45 +00:00
Ryan Pavlik
2b006d5df7
aux/math: Add quaternion normalization
2019-06-22 11:34:51 +01:00
Ryan Pavlik
9635952165
aux/math: Codespell fix
2019-06-18 13:09:59 -05:00
Jakob Bornecrantz
b8e4a5f8d1
aux/math: Add simple string hashing function
2019-04-12 10:47:13 +01:00
Jakob Bornecrantz
6fb8a216a3
aux/math: Group the files and structs in documentation
2019-04-06 13:05:35 +01:00
Jakob Bornecrantz
5a7b5cf247
aux/math: Tidy whitespace
2019-03-27 13:34:58 +00:00
Ryan Pavlik
d29dc04e05
aux/math: Add quat finite difference function
2019-03-25 12:28:54 -05:00
Jakob Bornecrantz
15a97422ba
xrt: Add all of Monado
2019-03-18 05:52:32 +00:00