Commit Graph

160 Commits

Author SHA1 Message Date
Philippe Renon fb15658cc9 fix typo: apsect should be aspect 2020-10-11 11:42:22 +02:00
Sébastien Crozet 1e65fb948d Release nalgebra-glm v0.8.0 2020-08-25 21:16:06 +02:00
Sébastien Crozet a6962dfadc Bump the simba dependency version. 2020-08-25 20:46:35 +02:00
sebcrozet 0be9a07f8b Use the #[rustfmt::skip] attribute instead of rustfmt_skip. 2020-06-07 09:30:21 +02:00
sebcrozet b87920bb8d Release nalgebra v0.21.0 2020-04-05 23:19:10 +02:00
sebcrozet bbb3be512e Run cargo fmt. 2020-04-05 18:49:48 +02:00
sebcrozet 426b289871 nalgebra-glm: switch to simba instead of alga. 2020-04-05 17:13:34 +02:00
sebcrozet f8cd26cfa9 Replace alga by simba. 2020-03-21 12:16:46 +01:00
Sébastien Crozet fb69a42878 Release v0.20.0. 2020-03-02 14:34:46 +01:00
Avi Weinstock 774f4da3e2 Add `Clone` to `Scalar`, providing a default implementation of `inlined_clone`. Change `Scalar + Clone` bounds to just `Scalar`. 2020-03-02 12:45:37 +01:00
Avi Weinstock 52aac8b975 Add inlined_clone to Scalar, and relax bounds from `Scalar + Copy` to `Scalar + Clone` nearly everywhere.
The various nalgebra-lapack FooScalars are still Copy because they make use of uninitialized memory.
nalgebgra-glm Number still uses Copy because upstream `approx` requires it.
2020-03-02 12:45:37 +01:00
Avi Weinstock 6c236af696 Add Scalar + Copy bounds to code that's under feature flags.
`./ci/test.sh` now passes locally.

Refactoring done via the following sed commands:
```bash
export RELEVANT_SOURCEFILES="$(find src -name '*.rs') $(find examples -name '*.rs')"
for f in $RELEVANT_SOURCEFILES; do sed -i 's/N\([0-9]\?\): *Scalar + \(Arbitrary\)/N\1: Scalar + Copy + \2/' $f; done
for f in $RELEVANT_SOURCEFILES; do sed -i 's/N\([0-9]\?\): *Scalar + \(Serialize\)/N\1: Scalar + Copy + \2/' $f; done
for f in $RELEVANT_SOURCEFILES; do sed -i 's/N\([0-9]\?\): *Scalar + \(Deserialize\)/N\1: Scalar + Copy + \2/' $f; do
export RELEVANT_SOURCEFILES="$(find nalgebra-glm -name '*.rs')"
for f in $RELEVANT_SOURCEFILES; do sed -i 's/N\([0-9]\?\): *Scalar,/N\1: Scalar + Copy,/' $f; done
for f in $RELEVANT_SOURCEFILES; do sed -i 's/N\([0-9]\?\): *Scalar>/N\1: Scalar + Copy>/' $f; done
for f in algebra-glm/src/traits.rs; do sed -i 's/Scalar + Ring/Scalar + Copy + Ring>/' $f; done # Number trait definition
```
2020-03-02 12:45:37 +01:00
sebcrozet 549d0dd2dd Release nalgebra 0.19.0. 2019-10-28 14:15:03 +01:00
alex fedf0fb4f5 Fixes #637: removes not used parameter from cross 2019-10-28 14:15:03 +01:00
sebcrozet e48ee26d45 Release nalgebra-glm v0.4.2 2019-08-27 22:45:20 +02:00
sebcrozet f1576953dd nalgebra-glm: reexport infinite and reversed perspectives. 2019-08-27 22:41:09 +02:00
sebcrozet d60aa68609 Release v0.18.1 2019-08-27 20:55:25 +02:00
Jake Shadle 0384268bd4 HTTPS All The Things (#608)
* Use https for all links where it is valid

* Fix random links to external sites
2019-06-11 20:56:50 +02:00
Felipe Jorge fb95634d8c Fix for nostd builds (#589) 2019-04-26 19:38:03 +02:00
sebcrozet 049957ff55 Reorder comments about parameters of projection so they match the order of the function parameter. 2019-04-09 22:22:13 +02:00
sebcrozet 6b67687e1c Remove the _no variants of reversed perspective. 2019-04-09 22:22:13 +02:00
sebcrozet f03c785a60 Remove comments about float depth buffer. 2019-04-09 22:22:13 +02:00
sebcrozet ba93e0a774 Fix missing identifier. 2019-04-09 22:22:13 +02:00
sebcrozet 94908cf2ad Remove some assertions. 2019-04-09 22:22:13 +02:00
sebcrozet 68d8331c2a Fix typos. 2019-04-09 22:22:13 +02:00
sebcrozet 9c3cea1d32 Add more comments. 2019-04-09 22:22:13 +02:00
sebcrozet 1df1c4226b Add some infinite and reversed perspectives.
This adds:

infinite_perspective_rh_no
infinite_perspective_rh_zo
reversed_perspective_rh_no
reversed_perspective_rh_zo
reversed_infinite_perspective_rh_zo
reversed_infinite_perspective_rh_zo

Fix #573
2019-04-09 22:22:13 +02:00
sebcrozet b5b81a0ba9 Bump version numbers. 2019-03-31 15:25:54 +02:00
sebcrozet 4ef4001836 Rename Real to RealField. 2019-03-25 11:21:41 +01:00
sebcrozet 3cbe60523a 2018 edition. 2019-03-23 14:33:47 +01:00
sebcrozet fac709b0c0 Release nalgebra v0.17 and nalgebra-glm v0.3. 2019-02-03 17:03:12 +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 83cb35cfc9 Release nalgebra-glm v0.2.1 2018-12-29 13:33:32 +01:00
sebcrozet a31b3db600 Make nalgebra-glm compatible with no_std. 2018-12-29 13:19:48 +01:00
sebcrozet 73603538e6 Forward features from nalgebra-glm to its nalgebra dependency.
Fix #513
2018-12-29 13:19:48 +01:00
sebcrozet f36ff97d6a Fix deprecation warnings. 2018-12-29 13:19:09 +01:00
sebcrozet b74aeb12e2 glm: simplify some code for projection matrix computation. 2018-12-29 13:19:09 +01:00
MindSpunk ea933c654a minor doc typo 2018-12-29 11:30:53 +01:00
MindSpunk 55b599e52c updating changes for response to pull request
Removed the compile configs based on cargo features and updated docs
2018-12-29 11:30:53 +01:00
MindSpunk ffd3dd5b68 More compile options docs 2018-12-29 11:30:53 +01:00
MindSpunk 8af8d6b202 explanatory comments in cargo.toml 2018-12-29 11:30:53 +01:00
MindSpunk 112b9e845c more comments/doc 2018-12-29 11:30:53 +01:00
MindSpunk 205ca1f10c Fix incorrect matrix indexing 2018-12-29 11:30:53 +01:00
MindSpunk 3518f95006 ortho docs 2018-12-29 11:30:53 +01:00
MindSpunk 21ecb5a370 perspective and orthographic functions and options 2018-12-29 11:30:53 +01:00
sebcrozet 8341ec2f10 Run rustfmt. 2018-11-06 18:32:20 +01:00
sebcrozet 911ddca588 Implement From<Vector> for Translation and Quaternion. 2018-11-01 11:07:36 +01:00
sebcrozet b52772c036 Fix rebase error. 2018-10-27 15:00:18 +02:00
sebcrozet 551c44c854 Implement From<Vector> for Point. 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 d3faf52c0d Release nalgebra-glm v0.2.0 2018-10-22 15:39:53 +02:00
sebcrozet 71cc075f35 Add mix, mix_scalar, mix_vec, lerp, lerp_scalar, lerp_vec. 2018-10-22 06:23:40 +02:00
sebcrozet b9ca074740 Execute rustfmt. 2018-10-22 06:23:40 +02:00
Bruce Mitchener 924a9cd160 Capitalize Euler. 2018-10-16 18:29:09 +02:00
Bruce Mitchener 47fe851173 Add favicons to docs. 2018-10-16 18:28:39 +02:00
Bruce Mitchener 4d7b215146 Add see also + examples for scalar min/max. 2018-10-09 08:31:38 +02:00
Bruce Mitchener e91ed3b0cd Explain l1 and l2 norms. 2018-10-09 08:31:38 +02:00
Bruce Mitchener 187fe9ca39 Start to cross-link vector contructors / conversions. 2018-10-09 08:31:38 +02:00
Bruce Mitchener 0dbe69ddb7 Reformat parameter listings in docs. 2018-10-08 07:54:26 +02:00
Bruce Mitchener e7610196b6 Add more see also content. 2018-10-08 07:54:26 +02:00
Bruce Mitchener 8b0918ff1f Add more doc test and correct see also for vector relational functions. 2018-10-08 07:54:26 +02:00
Bruce Mitchener ccc55b5766 Correctly flag "See also" headers. 2018-10-08 07:54:26 +02:00
sebcrozet 4a5c828db4 Release nalgebra-glm v0.1.3. 2018-10-07 12:19:10 +02:00
sebcrozet f0b29a9d23 Fix glm::clamp.
Fix #434.
2018-10-07 07:26:24 +02:00
Bruce Mitchener 81b19e9c8e glm docs: Add examples for clamp and clamp_scalar. 2018-10-07 06:01:36 +02:00
Bruce Mitchener 890286293f glm docs: Explain that TVec is a TMat. 2018-10-07 06:01:36 +02:00
Bruce Mitchener 0c5cc0b65e glm docs: Fix broken doc test. 2018-10-07 06:01:36 +02:00
Bruce Mitchener aed58d0dd6 Vector and quaternion alias improvements.
By aliasing to the aliases defined within glm rather than going
directly to nalgebra types / aliases, we're able to improve the
experience of linking through the docs in the glm docs.

For example, with TVec1 defined in terms of TVec rather than Vector1,
then the docs link from TVec1 to TVec and we're able to better
explain the concepts at the glm level.
2018-10-05 20:34:15 +02:00
Bruce Mitchener a34ad7d15f clippy: Use f32::from_bits(). 2018-10-05 20:30:41 +02:00
sebcrozet a27833f22c Release nalgebra-glm v0.1.2 2018-10-05 06:09:08 +02:00
Bruce Mitchener cb96cdb794 clippy: Prefer unwrap_or_else to unwrap_or. 2018-10-05 06:00:50 +02:00
Bruce Mitchener 71011c080e clippy: Remove redundant closures. 2018-10-05 06:00:21 +02:00
sebcrozet 8699a85693 Remove doc-test for `sign` on matrices since they are not supported for now. 2018-10-05 05:56:25 +02:00
sebcrozet 87c97497d2 Fix the glm::sign function to match its documentation.
Fix #422.
2018-10-05 05:56:25 +02:00
sebcrozet e2736caff6 Fix glm::perspective.
Fix #423.
2018-10-05 05:50:56 +02:00
Bruce Mitchener a01fde5699 Add more doc linking and some doc tests. 2018-10-04 21:04:50 +02:00
Bruce Mitchener 516abbfa06 'every components' -> 'every component' 2018-10-04 05:26:21 +02:00
Bruce Mitchener ca9b4e38dd Add more see-also content to glm docs. 2018-10-04 05:26:21 +02:00
Bruce Mitchener a8ae62ea52 Improve cross-linking and cross-referencing in docs. 2018-09-27 06:00:32 +02:00
Bruce Mitchener c6ca1ca3e2 glm: Use - instead of : after parameter names.
This makes things consistent with the other doc comments here.
2018-09-25 20:17:27 +02:00
Bruce Mitchener 20b464f5b8 glm: Add missing backticks around parameter names. 2018-09-25 20:17:27 +02:00
Bruce Mitchener 96a2a56800 Use 3 space indents to avoid triggering syntax highlighting. 2018-09-25 20:17:27 +02:00
Bruce Mitchener c56ec720eb glm: Use doc comments instead of regular comment. 2018-09-25 20:17:27 +02:00
sebcrozet e73701b3a8 Release v0.16.4 2018-09-24 22:06:29 +02:00
Bruce Mitchener 175c41ed3a Typo fixes. 2018-09-24 21:15:07 +02:00
Joe Clay 962e89417c Fix typo in GLM alias docs 2018-09-24 05:34:58 +02:00
sebcrozet cad07f23dc Release nalgebra-glm v0.1. 2018-09-23 17:16:55 +02:00
sebcrozet 053d51989a Re-export nalgebra's zero and one instead of defining new ones. 2018-09-23 17:10:49 +02:00
sebcrozet b8b86e72b5 Various documentation fixes. 2018-09-23 17:10:49 +02:00
sebcrozet 41fb5403b5 Mention TMat and TVec on the doc. 2018-09-23 17:10:49 +02:00
sebcrozet 4140375b6e Rename the Mat and Vec aliases to TMat and TVec. 2018-09-23 17:10:49 +02:00
sebcrozet 9e4087d466 Reexport more nalgebra types and traits. 2018-09-23 17:10:49 +02:00
sebcrozet 975e0a8b6b Add the TVec* and TMat* aliases. 2018-09-23 17:10:49 +02:00
sebcrozet ea668dea90 Various documentation improvements. 2018-09-23 17:10:49 +02:00
sebcrozet 71361fa136 Add more docs on lib.rs 2018-09-23 17:10:49 +02:00
sebcrozet d5e747bd4a Add more 2D transformation constructors. 2018-09-23 17:10:49 +02:00
sebcrozet 130885d83a Add conversion functions between square matrices. 2018-09-23 17:10:49 +02:00
sebcrozet f2bad264ef Re-export conversion functions. 2018-09-23 17:10:49 +02:00