Jordan Miner
b56119a42f
Test converting axis angles to quaternions
2016-05-12 01:28:15 -05:00
Mark Hintz
074cb2c36f
Change the name of methods on the Transform trait to avoid clashes
...
Transform::invert becomes Transform::inverse_transform, and Transform::invert_self becomes Transform::to_inverse. Tests passing for me now
2016-05-01 14:59:38 +02:00
Mark Hintz
0a78173e2b
impl Transform (2 dimensional) for Matrix3
2016-04-28 16:37:36 +02:00
Mark Hintz
a3539483b6
impl Transform (3 dimensional) for Matrix3
2016-04-28 16:37:36 +02:00
Mark Hintz
ab1d3d8622
imple Transform (and Transform3) for Matrix4
...
The change in transform.rs is to disambiguate which invert function is used
2016-04-28 16:37:36 +02:00
Mark Hintz
c32135a5d9
Move the From impls together
2016-04-28 16:37:36 +02:00
Mark Hintz
808a17fc22
implement from_angle{x, y, z} and from_axis_angle for Matrix4
...
All are duplicates of the same functions for Matrix3, with extra parameters added in to make up the full 4x4
2016-04-28 01:03:33 +02:00
Brendan Zabarauskas
6b48236cb6
Inherit Zero and One for core structural traits
2016-04-25 15:26:56 +10:00
Brendan Zabarauskas
54adacc2a8
Re-export Zero and One via structure module
2016-04-25 11:43:28 +10:00
Brendan Zabarauskas
0259acb87f
Switch to an Euler angle type for defining rotations
2016-04-23 16:56:07 +10:00
Brendan Zabarauskas
86c13ca14f
Switch to using num_traits crate from num
...
Fixes #336
2016-04-23 14:03:35 +10:00
Brendan Zabarauskas
8dd2874b59
Move traits into common module
2016-04-19 20:51:40 +10:00
Brendan Zabarauskas
07301eb4d0
Stabilise assignment operators
...
Assignment operators were stabilised in Rust 1.8.
2016-04-16 10:09:47 +10:00
Brendan Zabarauskas
23fce928c0
Module documentation updates
2016-04-09 14:22:30 +10:00
Brendan Zabarauskas
a3e6cd26b5
Document fields
2016-04-09 13:47:17 +10:00
Brendan Zabarauskas
886e2fb240
Unify trait hierarchies for vectors, quaternions and matrices
2016-04-09 13:47:04 +10:00
Brendan Zabarauskas
b4063ea72a
Rename Point to EuclideanSpace
2016-04-08 19:56:30 +10:00
Brendan Zabarauskas
2b36ea2ef9
Rename Vector trait to VectorSpace and EuclideanVector to InnerSpace
2016-04-08 08:46:35 +10:00
Brendan Zabarauskas
f766973a74
Remove neg_self methods
...
These are a weird methods... they aren't associated with any traits. I think they were left-over from before we moved to operator impls.
2016-04-04 20:45:37 +10:00
Brendan Zabarauskas
3d55187a7d
Mark some types as #[repr(C, packed)]
...
Closes #296
2016-03-25 12:42:17 +11:00
Cameron Hart
24a21d5fc6
Added scalar arithmetic operators for Matrix types
2016-01-02 16:11:16 +11:00
Brendan Zabarauskas
429d2659fe
Improve fmt::Debug impls
2015-12-29 21:50:43 +11:00
Brendan Zabarauskas
0875ea4444
Merge pull request #284 from DerekBurch/fix-matrix3-to-quaternion
...
Fix conversion from Matrix3 to Quaternion
2015-12-23 13:12:03 +11:00
derekburch
744fb78662
Fix conversion from Matrix3 to Quaternion
2015-12-22 17:53:06 -08:00
Brendan Zabarauskas
59d5e6f53a
Implement most assignment operators
2015-12-22 22:34:34 +11:00
Brendan Zabarauskas
8c05db962a
Implement by-ref negations for matrices
2015-12-22 00:43:15 +11:00
Brendan Zabarauskas
23c632acca
Use SquareMatrix::ColumnRow instead of Matrix::Column
2015-12-21 22:10:28 +11:00
Brendan Zabarauskas
1d886f6197
Add all permutations of matrix ops, and remove operator methods
...
Completes #247
2015-12-21 21:02:40 +11:00
Brendan Zabarauskas
612be7fecc
Move free trigonometric functions onto Angle trait
2015-12-13 23:51:00 +11:00
Brendan Zabarauskas
25f5dfd5fc
Remove operator methods from Vector trait
2015-12-13 12:01:00 +11:00
Brendan Zabarauskas
74a771af79
Rename matrix scale functions for better ergonomics
...
Uniform scale matrices are probably the more common case. It probably makes sense that this has the shorter constructor.
2015-12-07 23:46:24 +11:00
Brendan Zabarauskas
f75c8aa7f1
Merge pull request #261 from bjz/add-matrix-scale-functions
...
Add matrix scale functions
2015-12-06 21:08:27 +11:00
Brendan Zabarauskas
1a291c720c
Simplify impl bounds
...
All the useful functions are implemented for BaseFloat, so it seems reasonable to not require such fine-grained impls. This should also make the generated documentation easier to read.
2015-12-06 19:53:23 +11:00
Brendan Zabarauskas
4f0aabb164
Clarify comments about the kind of matrices that are returned by the constructors
2015-12-06 19:53:23 +11:00
Brendan Zabarauskas
2d6b4e785c
Add Matrix4::{from_scale, from_uniform_scale} functions
2015-12-06 19:53:23 +11:00
Brendan Zabarauskas
2dc0a4a43f
Rename SquareMatrix::one to identity
...
Fixes #260
2015-12-06 19:36:38 +11:00
Brendan Zabarauskas
5b2b10d65f
Rename Array::swap_elems to Array::swap_elements
2015-11-14 22:05:44 +11:00
Brendan Zabarauskas
70dbef1eb1
Rename Array1 to Array
2015-11-14 22:02:17 +11:00
Brendan Zabarauskas
ab24f3f8fe
Make Matrix trait work for matrices of arbritrary dimensions
2015-11-14 22:02:17 +11:00
Brendan Zabarauskas
178272da3d
Make lots of methods take vectors and points by value
2015-11-09 20:18:02 +11:00
Brendan Zabarauskas
7af4ebb28d
Add some by-value operator overloads
...
Working towards #247
2015-11-08 17:45:33 +11:00
Brendan Zabarauskas
89e656b1f6
Add comments noting rust bugs
2015-11-03 15:40:52 +11:00
Brendan Zabarauskas
cda76e3bbb
Remove type parameters from Matrix trait
2015-11-03 15:32:17 +11:00
Brendan Zabarauskas
25aea84e0d
Make scalar an an associated type on Vector
2015-11-03 14:30:59 +11:00
Brendan Zabarauskas
a434f18ba4
Make array type parameters associated types
2015-11-03 14:15:11 +11:00
Brendan Zabarauskas
0584bcac64
Make epsilon an associated type on ApproxEq
2015-11-03 14:00:39 +11:00
Brendan Zabarauskas
9e53629459
Clean up index operator usages
2015-10-04 12:58:53 +11:00
Brendan Zabarauskas
b168c03174
Rename identity
to one
...
Zero is the additive identity, so this disambiguates it
2015-10-01 18:56:31 +10:00
Brendan Zabarauskas
af38e8a8be
Rename comp_{add, mul} to {sum, product}
2015-10-01 18:52:55 +10:00
Brendan Zabarauskas
d9675f7c7e
Formatting
2015-09-30 20:47:38 +10:00