sebcrozet
7c91f2eeb5
Use Complex instead of Real whenever possible on the base/ module.
2019-02-23 11:24:07 +01:00
Sébastien Crozet
c97dfaf381
Add renormalization and rotation extraction from general 2D and 3D matrices. ( #549 )
...
* Add From impls to convert between UnitQuaterion/UnitComplex and Rotation2/3
* Add rotation extraction from a Matrix2 or Matrix3.
* Add fast Taylor renormalization for Unit.
Fix 376.
* Add renormalization for Rotation3.
Renormalization for Rotation2 requires Complex to implement VectorSpace which will be fixed only on alga v0.9
* Update Changelog.
2019-02-18 22:41:46 +01:00
adamnemecek
975d72f070
Replace explicit types with Self where possible.
2019-02-16 22:29:41 +01:00
sebcrozet
08f31837a8
Update to alga 0.8.
2019-02-03 15:52:15 +01:00
sebcrozet
fc24db8ff3
Merge branch 'master-public' into sparse
...
# Conflicts:
# Cargo.toml
# examples/matrix_construction.rs
# nalgebra-glm/src/constructors.rs
# nalgebra-glm/src/ext/matrix_clip_space.rs
# nalgebra-glm/src/ext/matrix_transform.rs
# nalgebra-glm/src/ext/mod.rs
# nalgebra-glm/src/ext/quaternion_common.rs
# nalgebra-glm/src/gtx/quaternion.rs
# nalgebra-glm/src/gtx/rotate_vector.rs
# nalgebra-glm/src/lib.rs
# nalgebra-glm/src/traits.rs
# nalgebra-lapack/src/cholesky.rs
# nalgebra-lapack/src/eigen.rs
# nalgebra-lapack/src/hessenberg.rs
# nalgebra-lapack/src/lu.rs
# nalgebra-lapack/src/qr.rs
# nalgebra-lapack/src/schur.rs
# nalgebra-lapack/src/svd.rs
# nalgebra-lapack/src/symmetric_eigen.rs
# rustfmt.toml
# src/base/array_storage.rs
# src/base/blas.rs
# src/base/cg.rs
# src/base/default_allocator.rs
# src/base/edition.rs
# src/base/iter.rs
# src/base/matrix.rs
# src/base/swizzle.rs
# src/base/vec_storage.rs
# src/geometry/mod.rs
# src/geometry/point_construction.rs
# src/geometry/quaternion.rs
# src/geometry/similarity.rs
# src/geometry/translation.rs
# src/geometry/unit_complex_construction.rs
# src/linalg/bidiagonal.rs
# src/linalg/cholesky.rs
# src/linalg/full_piv_lu.rs
# src/linalg/hessenberg.rs
# src/linalg/lu.rs
# src/linalg/permutation_sequence.rs
# src/linalg/qr.rs
# src/linalg/schur.rs
# src/linalg/svd.rs
# src/linalg/symmetric_eigen.rs
# src/linalg/symmetric_tridiagonal.rs
# tests/geometry/point.rs
# tests/geometry/quaternion.rs
# tests/lib.rs
# tests/linalg/eigen.rs
# tests/linalg/svd.rs
2019-02-03 12:53:41 +01:00
sebcrozet
381fdb642c
Remove useless extern crate in doc-tests.
2019-02-03 11:01:11 +01:00
sebcrozet
13f76efe36
Add simple constructors for pure-translation and pure-rotation isometries.
2019-01-29 12:04:23 +01:00
Gedl
59b0709fcf
Retain new_observer_frame as a deprecated wrapper function
2019-01-17 10:17:00 +01:00
Gedl
3fdcf5329d
Rename ::new_observer_frame to ::face_towards
2019-01-16 22:41:25 +01:00
sebcrozet
5569850dbd
Fix examples on stable.
2018-12-29 15:32:09 +01:00
Sébastien Crozet
564246ec1c
Merge pull request #507 from burtonageo/update_deps_2
...
Update dependencies, and fix tests from fallout
2018-12-29 14:33:53 +01:00
sebcrozet
be8d1ce3ce
Fix compilation errors related to rand.
2018-12-29 14:22:24 +01:00
Jack Wrenn
57123ed6aa
Overloaded Indexing
2018-12-29 13:41:56 +01:00
sebcrozet
f36ff97d6a
Fix deprecation warnings.
2018-12-29 13:19:09 +01:00
sebcrozet
a14d8a4cb2
Add coordinates access to translations.
...
Fix #509 .
2018-12-26 15:19:50 +01:00
George Burton
6a4323d0ea
Fix unintentional change
2018-12-18 14:46:29 +00:00
George Burton
9c37c51203
Update dependencies, and fix tests from fallout
2018-12-18 14:44:53 +00:00
Jack Wrenn
2595db1607
Fix doctests broken by 35d2381a2a
2018-12-16 12:58:20 +01:00
Jack Wrenn
0d47a8e16b
Rename `Perspective3::unwrap` to `Perspective3::into_inner` and deprecate `Perspective3::unwrap`
...
See #460
2018-12-16 12:58:20 +01:00
Jack Wrenn
9600c45dd4
Rename `Orthographic3::unwrap` to `Orthographic3::into_inner` and deprecate `Orthographic3::unwrap`
...
See #460
2018-12-16 12:58:20 +01:00
Jack Wrenn
43c5f4cb73
Rename `Transform::unwrap` to `Transform::into_inner` and deprecate `Transform::unwrap`
...
See #460
2018-12-16 12:58:20 +01:00
Jack Wrenn
35ab64b086
Rename `Rotation::unwrap` to `Rotation::into_inner` and deprecate `Rotation::unwrap`
...
See #460
2018-12-16 12:58:20 +01:00
Jack Wrenn
0ab137bfcf
Rename `Unit::unwrap` to `Unit::into_inner` and deprecate `Unit::unwrap`
...
See #460
2018-12-16 12:58:20 +01:00
sebcrozet
c69ab193be
Fix cornercase for Rotation3 conversion to euler angles.
...
Fix #494
2018-12-04 22:04:07 +01:00
Jack Wrenn
72d89c75ae
Group swizzle methods by dimensional requirement.
...
This is semantically equivalent, but improves the rendered documentation.
2018-11-24 08:03:54 +01:00
sebcrozet
f972d1dd7e
Small dimension check fix for swizzling.
2018-11-23 07:01:35 +01:00
Jack Wrenn
74ff6ae199
Implement `Point` swizzling
2018-11-23 06:34:00 +01:00
Jochen Görtler
85bfae5390
RFC: Add comment in `Rotation::to_homogeneous()`
2018-11-20 17:47:29 +01:00
sebcrozet
bd7d0be7a8
Remove over-restrictive assertions on Orthographic3 construction + add doc-tests.
...
Fix #365
2018-11-10 12:57:47 +01:00
sebcrozet
69490c2cea
Add doc-tests to Transform.
2018-11-10 11:20:34 +01:00
sebcrozet
b6d741c593
Document similarity_construction.rs.
2018-11-10 11:20:34 +01:00
sebcrozet
a8a9a3082a
Add doc-tests to unit_complex_construction.
2018-11-10 11:20:34 +01:00
sebcrozet
ff5b64e35d
Add doc-tests to unit_complex.rs.
2018-11-10 11:20:34 +01:00
sebcrozet
536923f9fc
Add doc-tests to rotation_specialization.
2018-11-10 11:20:34 +01:00
sebcrozet
80fc057ead
Add doc-tests to rotation_construction.
2018-11-10 11:20:34 +01:00
sebcrozet
7d9d47d9ea
Complete doc-tests of rotation.rs.
2018-11-10 11:20:34 +01:00
sebcrozet
c24caa311f
Add some documentation for Rotation.
2018-11-10 11:20:34 +01:00
sebcrozet
8341ec2f10
Run rustfmt.
2018-11-06 18:32:20 +01:00
sebcrozet
a7acd5b832
Fix missing type annotation.
2018-11-01 11:07:36 +01:00
sebcrozet
2119c1adf5
Complete documentation for quaternions.
2018-11-01 11:07:36 +01:00
sebcrozet
911ddca588
Implement From<Vector> for Translation and Quaternion.
2018-11-01 11:07:36 +01:00
sebcrozet
96db8e564a
Complete the documentation for Translation.
2018-11-01 11:07:36 +01:00
sebcrozet
1dd6bcce6a
Add doc-tests to most of quaternion.rs.
2018-11-01 11:07:36 +01:00
sebcrozet
98b0b842e9
Remove the inherent clone method from points.
...
Fix #458 .
2018-11-01 10:22:10 +01:00
sebcrozet
4ce6555b96
Add more point and quaternion documentation.
2018-10-27 15:00:18 +02:00
sebcrozet
b32a02f0ac
Add doc-tests to point_construction.rs
2018-10-27 15:00:18 +02:00
sebcrozet
551c44c854
Implement From<Vector> for Point.
2018-10-27 15:00:18 +02:00
sebcrozet
6d63a0a5f1
Add doc-tests to isometry_construction.rs
2018-10-27 15:00:18 +02:00
sebcrozet
a512e16868
Add doc-tests to isometry.rs.
2018-10-27 15:00:18 +02:00
sebcrozet
14ad10a7e0
Add rustfmt.toml and run it.
2018-10-27 15:00:18 +02:00
sebcrozet
5ea612ef96
Remove mention to the eye and target on the unit quaternion look_at_* methods.
2018-10-27 15:00:18 +02:00
sebcrozet
0d24cf4dc0
Run rustmt.
2018-10-20 22:26:44 +02:00
sebcrozet
9e2541f949
Add a Point::from_slice
2018-10-13 13:13:48 +02:00
sebcrozet
18e9b8998d
Add impls of From/Into to convert any transformation types to a matrix.
2018-10-13 11:25:19 +02:00
sebcrozet
c7c156a6a0
Use other keywords for isometry documentations.
...
Fix #419 .
2018-10-06 07:27:40 +02:00
sebcrozet
f218186ec0
Add Rotation * Unit<Vector>
2018-09-24 22:05:15 +02:00
Bruce Mitchener
175c41ed3a
Typo fixes.
2018-09-24 21:15:07 +02:00
sebcrozet
38c7ed3a11
Add methods to see a Perspective3 or Orthographic3 as a Projective3.
2018-09-22 16:15:11 +02:00
sebcrozet
7884f20ea7
Add quaternion dot product.
2018-09-22 16:15:11 +02:00
sebcrozet
832bf42b56
Add slerp for unit vectors.
2018-09-22 16:15:11 +02:00
Jacob Kiesel
787d20cff4
Add magnitude synonym functions for ease of use
2018-09-21 18:28:44 +02:00
sebcrozet
08685122ea
Fix projective * point multiplication.
...
The scaling did not occur at the right time.
2018-09-20 20:59:01 +02:00
sebcrozet
b272f3ba76
Fix compilation errors when the serde-serialize feature is enabled.
...
Fix #369 .
2018-09-13 07:49:38 +02:00
sebcrozet
378b39db9c
Update impls of abomonation.
2018-07-20 16:33:59 +02:00
sebcrozet
3b19b6553e
Update dependencies.
2018-07-20 16:33:59 +02:00
Benjamin Saunders
aad94661c9
Document distribution uniformity, fix `Rotation2` distribution
...
Also tweak UnitComplex distribution for consistency
2018-07-10 20:17:52 +02:00
Benjamin Saunders
352e71656d
Uniformly distributed random rotations, unit vectors
2018-07-10 20:17:52 +02:00
sebcrozet
3eaa65c9cf
Minor doc fixes.
2018-07-07 17:37:15 +02:00
Simon Heath
ba5bc77262
Removes DefaultAllocatorBound from mint::Point conversions
2018-06-09 00:36:19 +02:00
Simon Heath
491903e1de
Replace mem::transmute() with pointer casts
...
And fix erroneous #[cfg]
2018-06-09 00:36:19 +02:00
Simon Heath
a3c4dbca95
Adds conversions to and from mint Point types.
2018-06-09 00:36:19 +02:00
sebcrozet
3ee13ec528
Update changelog.
2018-05-27 12:25:58 +02:00
Shane Pearman
2814e09d31
Add from array impl for points.
2018-05-27 12:23:54 +02:00
sebcrozet
a51744f86b
Update to rand 0.5.
2018-05-26 22:07:57 +02:00
sebcrozet
ca093fad29
Move core/* to base/* + add conditional compilation to dynamics matrices when no_std is enabled.
2018-05-26 22:07:57 +02:00
sebcrozet
88055dfc45
Update to approx 0.2.
2018-05-26 22:07:57 +02:00
sebcrozet
fefba2ef4e
Fix conflicting impls for isometry multiplication.
2018-05-06 23:44:57 +02:00
Sébastien Crozet
7357d17b77
Fix typos.
2018-05-06 23:31:36 +02:00
Sébastien Crozet
31e3547401
Add UnitQuaternion::{new_eps, from_scaled_axis_eps}.
2018-05-06 23:31:36 +02:00
Sébastien Crozet
1ac8bbd3d1
Add .axis_angle to UnitComplex and UnitQuaternion + .rotation_between_axis to UnitComplex.
2018-03-08 17:30:59 +01:00
Sébastien Crozet
84a01a720d
Fix unnecessary parenthesis.
2018-02-03 13:59:05 +01:00
Sébastien Crozet
662cc9cd7f
Run rust fmt.
2018-02-03 13:59:05 +01:00
Sébastien Crozet
6d4bfc3b79
Fix warnings.
2018-02-03 13:59:05 +01:00
Sébastien Crozet
3dc76caf7e
Add Isometry × Unit<Vector>.
...
Fix #285 .
2018-02-03 13:59:05 +01:00
Sébastien Crozet
52598de44c
Add rotation_between_axis/scaled_rotation_between_axis.
2018-02-03 13:59:05 +01:00
Sébastien Crozet
94c1ab8e7b
Add matrix slice construction from array slices.
2018-02-03 13:59:05 +01:00
Jack Wrenn
922b339fb0
Implement to_euler_angles for Rotation3 and UnitQuaternion
...
Resolves sebcrozet/nalgebra#243 .
2018-01-09 15:15:57 -05:00
Colin Wallace
e5259130e5
Fix spelling of "below"
2017-10-26 21:13:35 -07:00
Dzmitry Malyshau
94db3f533b
Mint rebase
2017-10-09 20:22:24 +02:00
Dzmitry Malyshau
ce2063c191
Mint Euler angles
2017-10-09 20:22:24 +02:00
Dzmitry Malyshau
b0127ab5dc
Mint quaternions
2017-10-09 20:22:24 +02:00
Sébastien Crozet
48f80d99cc
Fix abomonation integration.
2017-08-15 19:36:38 +02:00
Sébastien Crozet
afef66227e
Merge branch 'master' into abomonation
2017-08-15 19:18:39 +02:00
Sébastien Crozet
e84b73c848
Deprecate into_owned and clone_owned for Quaternion, UnitQuaternion, and Transform.
2017-08-15 19:07:18 +02:00
Sébastien Crozet
aaa359f3b0
Remove hand-written rustdoc doc for quaternon and unit_complex.
...
Those are now generated automatically by rustdoc.
2017-08-15 19:07:18 +02:00
Sébastien Crozet
3f70af97dd
Add the most common matrix decompositions.
2017-08-15 19:07:18 +02:00
Eduard Bopp
e09af0ca82
Implement Abomonation for remaining types
2017-08-14 14:32:02 +02:00
Eduard Bopp
f67a7bd324
Implement Abomonation for rotations
2017-08-14 12:41:03 +02:00
Eduard Bopp
308177a7d6
Implement Abomonation for translations
2017-08-14 12:37:16 +02:00
Eduard Bopp
49f12a379d
Implement Abomonation for static-size points
2017-08-14 12:18:47 +02:00
Eduard Bopp
e0cc7ff21b
Fix TCategory implementation for TAffine
...
Closes #271 .
2017-07-29 14:45:20 +02:00
Benjamin Saunders
0979896dbd
Remove gratuitous indirection in serialization impls
2017-05-03 19:51:26 -07:00
Sébastien Crozet
42b48563be
Make serde optional behind the "serde-serialize" feature.
2017-02-15 22:04:34 +01:00
Sébastien Crozet
086e6e719f
Doc + slerp + conversions.
2017-02-12 18:17:09 +01:00
Sébastien Crozet
99b6181b1e
Complete library rewrite.
...
See comments on #207 for details.
2016-12-04 22:47:36 +01:00