Commit Graph

393 Commits

Author SHA1 Message Date
Sébastien Crozet
292abfbaa0
chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
Junfeng Liu
d1edb4fd7b Fix document of Rotation's transpose and inverse methods 2024-06-18 11:19:35 -07:00
Sébastien Crozet
c23807ac5d
feat: use GAT to remove the scalar type T from the Allocator trait (#1397) 2024-06-12 11:16:06 +02:00
Benjamin Saunders
7866bcee5c Remove CUDA support relying on abandoned toolchain 2024-01-11 23:09:17 -08:00
Benjamin De Roeck
a60870daf6
docs: Demonstrate correct function in to_homogeneous example (#1346) 2024-01-04 19:21:40 -08:00
Kurt Lawrence
6dce471297
Make OPoint call T::fmt to respect formatting modifiers (#1336) 2023-12-20 14:42:54 -08:00
Julian Knodt
1e0cb7bc09
Fix Clippy Warnings (#1300) 2023-12-16 13:54:38 -08:00
Sébastien Crozet
804e606c97
Merge pull request #1270 from waywardmonkeys/look-at-lh-is-left-handed
doc: Isometry's `look_at_lh` is left-handed.
2023-09-30 18:21:48 +02:00
Sébastien Crozet
1987ca29bb
Merge pull request #1282 from waywardmonkeys/clippy-needless-borrow
clippy: Fix needless_borrow warnings.
2023-09-30 18:15:42 +02:00
Sébastien Crozet
5a9d036226
Merge pull request #1283 from waywardmonkeys/dual-quaternion-wrong-self-convention
DualQuaternion: Fix to_vector self convention.
2023-09-30 18:13:23 +02:00
Matthias Geier
87796ace42 DOC: Use norm_squared() in its doctest 2023-09-30 13:01:11 +02:00
Bruce Mitchener
bfb84e8fc6 DualQuaternion: Fix to_vector self convention.
By taking a ref, we can avoid an extra copy on the caller side.
2023-08-19 00:52:59 +07:00
Bruce Mitchener
1d9a4bf6ec clippy: Fix needless_borrow warnings. 2023-08-19 00:36:24 +07:00
Bruce Mitchener
76866ad878 clippy: Fix needless_return warnings. 2023-08-15 14:34:34 +07:00
Bruce Mitchener
8ba1459602 Use assert_relative_eq! instead of relative_eq!`.
When testing for something, need to use the assert form.
2023-08-12 22:48:16 +07:00
Bruce Mitchener
d0aa7f2090 doc: Isometry's look_at_lh is left-handed.
Fixes issue #734.
2023-08-12 22:00:17 +07:00
Sébastien Crozet
c63503de04
chore: remove explicit bytecheck dependency 2023-07-09 11:36:44 +02:00
Sébastien Crozet
b6abfee24f
Merge pull request #1248 from AlexanderEkdahl/patch-1
Remove unnecessary normalization in `Rotation3::face_towards`
2023-07-08 15:15:54 +02:00
Sébastien Crozet
17f5ec120f
Merge pull request #1243 from bluebear94/mf/point-lerp
Add OPoint::lerp
2023-07-08 15:02:15 +02:00
Sébastien Crozet
1e38e6f595
Mote Point::lerp to the point.rs file. 2023-07-08 14:55:16 +02:00
Alexander Ekdahl
860899cd6d
Remove unnecessary normalization in Rotation3::face_towards
`zaxis` and `xaxis` are already normalized which means `zaxis.cross(&xaxis)` should already be normalized.
2023-06-19 15:20:01 +02:00
Zach Kozar
033f722d4f
Return angles as array, add requirements and examples to doc 2023-05-05 00:00:25 -04:00
Zach Kozar
889cf2f71d
Add euler_angles_ordered function on Rotation 2023-04-22 11:22:03 -04:00
Chris Ohk
fd97a82926 fix: Correct minor typos 2023-02-01 15:48:06 +09:00
Sébastien Crozet
dc1b291ece Merge pull request #1179 from timethy/euler-angles-patch
Fix typo in `euler_angles()`, and cache cosine computation.
2023-01-14 11:48:22 +01:00
Sébastien Crozet
e24acba5f9 cargo fmt 2023-01-13 10:05:52 +01:00
Sébastien Crozet
e959f2eb9c Fix CheckBytes derives + drop Complex rkyv support for now 2023-01-13 09:58:41 +01:00
Sébastien Crozet
cce66c3abf Merge branch 'dev' into dev-zyanshep 2023-01-13 09:19:49 +01:00
Liam
b2da4609cf
Update isometry.rs
Fix formatting of documentation so that "A 3D isometry is composed of:" is on its own line.
2022-12-21 18:51:02 +11:00
Andreas Longva
34f4537376 Use view* instead of slice* methods in src/ 2022-11-14 14:14:42 +01:00
Andreas Longva
29bff32d2d Rename MatrixSlice(Mut) to MatrixView(Mut)
Additionally introduce deprecated type aliases with the old names to avoid
a breaking change.
2022-11-11 16:10:40 +01:00
Allan Zhang
20dbfbd6f9 Use parenthesis for exclusive lower bound
Changes `]0, pi]` to `(0, pi]`.

Replaces PR #1173 and resolves Issue #1164.
2022-11-04 09:34:46 -04:00
Peng Guanwen
2cbb27c6f8 Derive CheckBytes trait on Archive struct 2022-10-13 12:22:45 +00:00
Sébastien Crozet
1870080f94 Remove const for Point1::new when targetting cuda 2022-09-24 10:13:15 +02:00
Sébastien Crozet
1079f0c1c3 Add a non-const version of Point::new when the cuda feature is enabled 2022-09-24 09:50:58 +02:00
zyansheep
525bc63de2 use patch for num-complex & refactor 2022-08-15 18:47:00 -04:00
Sébastien Crozet
0fcf2f61d2
Merge pull request #1112 from SolraBizna/point-construction-const-fn
Make "Point::new" a const fn
2022-08-14 15:03:09 +02:00
Sébastien Crozet
d0d88f1e82
Merge pull request #1113 from trueb2/user/trueb2/fix-unitcomplex-assertion
Fix UnitComplex cast doctest failure on macOS
2022-07-30 17:33:13 +02:00
Tim Taubner
0c2d9deac7 cargo fmt 2022-07-27 11:44:42 +02:00
Tim Taubner
7aadbcf21d From_rotation_matrix: Use the larger of eps.sqrt() or eps*eps as disturbance. Add tests for eps > 1.0 2022-07-27 11:31:43 +02:00
Sébastien Crozet
26e69863e1 Rotation from matrix: small code cleanups 2022-07-27 09:49:16 +02:00
Tim Taubner
d515e4f1be Perturbations to check for convergence into maximum. 2022-07-27 09:49:16 +02:00
Tim Taubner
f9aa2d76aa Start from random rotation in from_matrix to prevent issues when calling from_matrix on rotation matrices 2022-07-27 09:49:16 +02:00
zyansheep
71379c0748 cargo fmt 2022-07-13 23:05:44 -04:00
zyansheep
9a98b0cf24 various implementations 2022-07-13 23:02:17 -04:00
Jacob Trueb
0cdf3ce452 Fix UnitComplex cast doctest failure on macOS 2022-05-25 17:51:19 -05:00
Solra Bizna
4d968da1ad
Make "Point::new" a const fn 2022-05-25 16:42:18 -06:00
Sébastien Crozet
e913beca88 Switch to derive macros for rkyv and bytecheck 2022-04-30 10:47:30 +02:00
zyansheep
24b97932e1 add bytecheck impls 2022-04-30 10:36:39 +02:00
zyansheep
90f2603de4 upgrade rkyv to 0.7 2022-04-30 10:36:39 +02:00