Christoph Haag
370f6820aa
m: Generalize math_matrix_4x4_quad_model, making scaling a vec3
2020-08-21 02:11:03 +02:00
Ryan Pavlik
146218b346
xrt: Some clang tidy fixes.
...
A few suppressions as well where clang-tidy did the wrong thing.
2020-08-12 17:11:42 -05:00
Lubosz Sarnecki
87a5c425cf
a/math: Add math_vec3_normalize.
2020-07-31 12:45:47 +02:00
Ryan Pavlik
4220638afd
xrt: use _USE_MATH_DEFINES to make sure M_PI gets defined.
2020-07-17 13:53:39 -05: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
Jakob Bornecrantz
9d791cdfd3
math: Use non-squared 'length' of quat in validation
...
Correctly validate quaternion using non-squard "length" instead of squard
"length", certain combinations of elements would produce valid regular "length"
but not valid squard ones.
2020-05-28 15:50:47 +01: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
3e5da414f7
aux/math: Add 3DOF imu fusion
2020-03-25 13:58:51 +00:00
Jakob Bornecrantz
f2ebe74748
aux/math: Add a simple imu pre-filter
2020-03-25 13:58:51 +00:00
Jakob Bornecrantz
23a66eb031
aux/math: Add math_matrix_3x3_rotate_vec3 function
2020-03-25 13:58:51 +00:00
Jakob Bornecrantz
18373730a8
aux/math: Expand the vec3 functions
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
Jakob Bornecrantz
0b63cb2da3
aux/math: Add vec2 squared length function
2020-03-11 20:37:20 +00:00
Jakob Bornecrantz
7207c50992
math: Add filter fifo helper
2020-02-18 13:33:22 +00:00
Nova
4cfd4c4657
math: Added vec3 math functions
2020-02-09 21:06:47 +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
998b198b44
math: Fix math_pose_invert
2020-01-13 10:37:14 +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
Jakob Bornecrantz
50d28369c4
m/headers: Rename C++ headers to hpp and tidy headers
2019-11-21 14:54:17 +00:00
Ryan Pavlik
e9d64c4c41
a/math: Clang-tidy
2019-11-14 12:14:58 +00:00
Jakob Bornecrantz
cdafcda626
math: Add some vec2 functions
2019-10-25 13:05:54 +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
0d9aaae470
aux/math: Correct(?) transform
2019-10-08 01:04:46 +00:00
Jakob Bornecrantz
b95e114160
aux/math: Code style, pointer star location
2019-09-29 11:45:23 +01:00
Jakob Bornecrantz
1bcf537785
aux/math: Add standard gravity value
2019-09-16 16:36:47 +01:00
Ryan Pavlik
11c5518aa0
aux/math: Simplify
2019-08-16 17:12:53 -05:00
Ryan Pavlik
1700be7022
aux/math: Fix typo
2019-08-16 17:12:53 -05:00
Jakob Bornecrantz
505d5cf5d6
aux/math: C export paranoia
2019-07-21 14:57:45 +00: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