Sébastien Crozet
b08a8384ae
Add outer product.
2013-08-12 16:45:31 +02:00
Sébastien Crozet
3f3f59e8eb
Changed mod visibilities + add doc for types.rs
2013-08-01 18:55:42 +02:00
Sébastien Crozet
e75fe80966
Add documentation.
2013-07-24 16:50:40 +02:00
Sébastien Crozet
e2f34023ed
Add traits MatCast and VecCast.
...
VecCast casts a Vec<N1> to a Vec<N2> with N1 and N2 bounded by NumCast.
MatCast casts a Mat<N1> to a Mat<N2> with N1 and N2 bounded by NumCast.
2013-07-22 23:42:35 +02:00
Sébastien Crozet
0577f3e364
Add type aliases.
2013-07-22 13:44:08 +02:00
Sébastien Crozet
3a64e05c62
Merged the {vec, mat} and {vec, mat}_impl modules.
2013-07-22 11:35:36 +02:00
Sébastien Crozet
ff24f70332
Flattened the traits
submodules.
2013-07-22 10:26:20 +02:00
Sébastien Crozet
ae74a05fdd
Add implementation of Vec0.
2013-07-20 16:32:39 +02:00
Sébastien Crozet
cf216f9b90
Removed occurences of copy/Copy + improved api.
...
Now, access to vector components are x, y, z, w, a, b, ... instead of at[i].
The method at(i) has the same (read only) effect as the old at[i].
Now, access to matrix components are m11, m12, ... instead of mij[offset(i, j)]...
The method at((i, j)) has the same effect as the old mij[offset(i, j)].
Automatic implementation of all traits the compiler supports has been added on the #[deriving]
clause for both matrices and vectors.
2013-07-20 15:07:49 +02:00
Sébastien Crozet
6f081b70b8
Add sphere sempling trait + Copy becomes Clone
2013-07-04 14:23:08 +00:00
Sébastien Crozet
3bb470ac95
Add Column + Homogeneous + Indexable traits.
...
Column: to access a matrix column.
Homogeneous: to convert a matrix/vector from/to homogenous coordinates.
Indexable: to access a matrix/vector element using indices.
2013-06-29 11:40:31 +00:00
Sébastien Crozet
c58e1ed40d
Reorganized files.
2013-06-29 00:34:45 +00:00
Sébastien Crozet
c54eb562ec
Refactor code for matrices.
2013-06-28 22:55:09 +00:00
Sébastien Crozet
cd355dfb30
Refactor vec{1, 2, 3} implemenation + add some useful traits.
2013-06-28 21:03:40 +00:00
Sébastien Crozet
6723693b49
Refined traits for rotation/translation/transformation.
2013-06-27 16:16:07 +00:00
Sébastien Crozet
caee7eb423
workarounds -> traits. All ICE are now compiler errors.
2013-06-15 20:16:44 +00:00
Sébastien Crozet
4c65f793e8
Add flatten trait.
2013-06-10 00:09:36 +00:00
Sébastien Crozet
f264b75ce6
Add dynamically sized matrix.
2013-05-31 11:28:42 +02:00
Sébastien Crozet
335794208d
Add dynamically sized vector.
2013-05-31 11:01:07 +02:00
Sébastien Crozet
898a87b46c
Add SubDot trait and basic implementations.
2013-05-25 13:51:51 +00:00
Sébastien Crozet
3fa933d13f
Add comments and adapted to new rust syntax.
2013-05-21 22:46:33 +00:00
Sébastien Crozet
4312daa53c
Removed the triginometric trait workaround.
2013-05-20 10:02:02 +00:00
Sébastien Crozet
b2d17300d9
Add delta-transformation implementations.
2013-05-19 19:45:30 +00:00
Sébastien Crozet
dc0757b2e5
Add rotation and translation traits.
2013-05-19 11:44:27 +00:00
Sébastien Crozet
a0ada142a6
Removed useless use on the .rc.
2013-05-18 21:56:03 +00:00
Sébastien Crozet
01d37a1b56
Refined ScalaOp trait.
2013-05-18 18:06:36 +00:00
Sébastien Crozet
890cdb73f2
Add tests and basis generation.
2013-05-18 17:04:03 +00:00
Sébastien Crozet
699e4c5bb7
Adapted assertions with last rust zero-testing api.
2013-05-16 21:44:05 +00:00
Sébastien Crozet
d636fdd346
Add matrix adaptors and addapted to the now rust features.
2013-05-16 21:30:39 +00:00
Sébastien Crozet
30d82f2408
Add n-dimensional vector and matrix.
2013-05-15 00:18:13 +00:00
Sébastien Crozet
4582492fda
Addesome traits and configuration file.
2013-05-14 21:08:29 +00:00