bors[bot]
649fef941b
Merge #475
...
475: Declare vector constructors to be const r=kvark a=nstoddard
This makes it easier to create vectors in constants.
Co-authored-by: Nathan Stoddard <nstoddard@users.noreply.github.com>
2019-01-14 16:48:32 +00:00
Nathan Stoddard
c438536dac
Declare the rest of the constructors to be const
...
This requires removing trait bounds from the constructors, and for Euler, removing the trait bound from the struct.
2019-01-13 22:42:16 -08:00
Nathan Stoddard
19f75b88e6
Declare point constructors to be const
...
Also add const to a vector constructor that I missed before.
Constructors for other types can't yet be const, because the compiler gives an error: "trait bounds other than `Sized` on const fn parameters are unstable".
2019-01-12 19:59:44 -08:00
Nathan Stoddard
9a20f1031c
Declare vector constructors to be const
...
This makes it easier to create vectors in constants.
2019-01-12 14:53:20 -08:00
bors[bot]
5e758d13bd
Merge #473
...
473: Update some dependencies r=kvark a=Eijebong
Co-authored-by: Bastien Orivel <eijebong@bananium.fr>
2018-12-28 20:25:39 +00:00
Bastien Orivel
036604ed49
Update some dependencies and bump version
2018-12-28 21:01:18 +01:00
Vlad Shcherbina
5512b6a0f7
[breaking] Move lerp() from InnerSpace to VectorSpace
...
Because it does not require dot product.
Along the way, fix the comment.
Fixes #471 .
2018-11-22 17:43:21 +03:00
Osspial
858d3ae8c8
Merge pull request #463 from LukasKalbertodt/fix-doc-links
...
Fix links to OpenGL API in docs
2018-08-14 21:51:44 -04:00
Lukas Kalbertodt
e58bd7b878
Fix links to OpenGL API in docs
...
Those links were broken before, since the [] and () part were split
into two different lines. This also caused warnings on nightly, which
are now fixed.
2018-07-11 10:56:06 +02:00
Brendan Zabarauskas
aba0d0415e
Merge pull request #459 from VictorKoenders/rand
...
Bumped rand to 0.5
2018-06-11 23:08:49 +10:00
Victor Koenders
bd88d9e93f
Fixed a compiler issue with the 'simd' feature
2018-06-08 14:35:12 +02:00
Victor Koenders
df4f27e40e
Fixed warnings
2018-06-08 14:01:26 +02:00
Victor Koenders
cdb0e8c8a1
Bumped rand and fixed compiler issues
2018-06-08 13:39:02 +02:00
Brendan Zabarauskas
1c5fb672a4
Merge pull request #457 from alexheretic/approx-0.2
...
Update approx -> 0.2
2018-05-24 12:25:59 +10:00
Alex Butler
a3965d414d
Update approx -> 0.2
2018-05-23 12:43:52 +01:00
Brendan Zabarauskas
e7c31cbe5e
Merge pull request #456 from spearman/bump-num-traits
...
Bump num-traits version -> 0.2
2018-04-30 19:24:37 +10:00
Brendan Zabarauskas
f052bf0c9c
Merge pull request #455 from derekdreery/is_finite
...
Add is_finite method to vectors and matrices.
2018-04-30 19:12:06 +10:00
Richard Dodd
2a7e2ebda3
Fix simd
2018-04-29 17:04:49 +01:00
Richard Dodd
f8e92ed327
Add is_finite to array and quaternion
2018-04-29 14:21:42 +01:00
Shane Pearman
d686c404f9
Bump num-traits version -> 0.2
2018-04-28 21:00:36 -07:00
Richard Dodd
f82e421e2c
Fix for simd
2018-04-28 15:09:45 +01:00
Richard Dodd
4fede94df5
Add is_finite method to vectors and matrices.
...
This method is useful in debug to error early when some kind of
singularity is encountered.
2018-04-28 11:34:45 +01:00
Brendan Zabarauskas
4eb6a53e23
Bump cargo version
2018-03-21 14:11:38 +11:00
Osspial
36f306fa03
Update CHANGELOG.md
...
Adds changes from `point_element_wise` and `map` branches.
2018-03-20 16:36:50 -04:00
Brendan Zabarauskas
067dce8cbc
Merge pull request #446 from Osspial/map
...
Add map functions to points and vectors
2018-03-20 11:05:27 +11:00
Osspial
def53ca371
Fix some documentation
2018-03-16 16:32:46 -04:00
Osspial
34da833e39
Add map functions to points and vectors
2018-01-20 23:54:59 -05:00
Brendan Zabarauskas
fec4e8363d
Merge pull request #444 from Osspial/point_element_wise
...
Implement ElementWise for PointN
2018-01-06 16:49:14 +11:00
Osspial
d1cd15a45b
Implement ElementWise for PointN
2018-01-05 15:09:12 -05:00
Brendan Zabarauskas
863d21be9a
Merge pull request #443 from brendanzab/v0.16
...
Release v0.16
2018-01-05 15:25:41 +11:00
Brendan Zabarauskas
ae9164d843
Update CHANGELOG
2018-01-03 13:16:40 +11:00
Brendan Zabarauskas
fd1107db2d
Bump version number
2018-01-03 13:16:40 +11:00
Brendan Zabarauskas
574dd3b972
Run rustfmt on most files
2018-01-03 13:16:40 +11:00
Brendan Zabarauskas
68b9052be1
Remove experimantal must_use annotations
2018-01-03 12:41:43 +11:00
Brendan Zabarauskas
f2eee9149b
Update dependencies
2018-01-03 12:39:34 +11:00
Brendan Zabarauskas
d1cda89cba
Merge pull request #442 from ozkriff/update_to_rand_v0_4
...
Update to rand v0.4
2018-01-03 12:34:54 +11:00
Andrey Lesnikov
46e4039a4d
Update to rand v0.4
2018-01-02 16:07:27 +03:00
Brendan Zabarauskas
38a7a7acfa
Merge pull request #440 from Aceeri/vector3unitz
...
Fix docs for unit_z on Vector3
2017-12-31 15:37:19 +11:00
Aceeri
fe8ec2beb9
Fix docs for unit_z on Vector3
2017-12-03 17:57:37 -08:00
Brendan Zabarauskas
ab1b186cbb
Merge pull request #439 from martinlindhe/master
...
fix some typos
2017-12-03 11:16:51 +11:00
Martin Lindhe
2acb4a968a
fix some typos
2017-11-19 13:30:15 +01:00
Brendan Zabarauskas
43a6b2be8c
Merge pull request #426 from Osspial/point_ops
...
Add vector subtraction for all points
2017-10-23 23:11:41 +11:00
Brendan Zabarauskas
429249fffd
Merge pull request #435 from gendx/add_look_at_dir
...
Add Matrix4::look_at_dir (fix #433 ).
2017-10-23 23:09:25 +11:00
G. Endignoux
d1e6cc4a03
Add Matrix4::look_at_dir ( fix #433 ).
2017-10-23 12:40:35 +02:00
Osspial
0a9c51da82
Fix incorrect operator in sub_assign impl
2017-10-06 00:20:38 -04:00
Brendan Zabarauskas
ccc81b4760
Merge pull request #432 from elrnv/swizzle
...
Swizzle Operators
2017-10-02 09:13:07 +11:00
Brendan Zabarauskas
bdf4f568cf
Merge pull request #431 from Rhuagh/add-inverse-transform-vector
...
Adding inverse transformation of a vector to the Transform trait.
2017-10-02 09:08:28 +11:00
Egor Larionov
61da8e4720
Update README to describe the new swizzling feature
2017-10-01 14:23:07 -07:00
Egor Larionov
ae7a85305c
Guard the swizzle test by the "swizzle" feature flag.
...
Also rename the swizzle tests with a "swizzle" postfix to easier see these in
the test log.
2017-10-01 13:36:01 -07:00
Egor Larionov
12547b5bcb
Put the swizzle operators behind a feature flag "swizzle" to avoid increasing
...
the binary size by approximately 20% by default.
2017-10-01 13:26:47 -07:00