Colin Sherratt
0f0b960211
Added to_euler which allows moving from to and from euler coordinates.
...
I did not have much luck getting the old from_eular logic work the way I
expected so I updated the implementation to match my sources.
I believe this changed the order of the axis, I am unsure of what they were
before.
2014-10-13 21:05:49 -04:00
Brendan Zabarauskas
d981c349a0
Merge pull request #127 from csherratt/master
...
Fix ortho projection matrix
2014-10-06 17:41:24 +11:00
Colin Sherratt
aae8747595
Fix ortho projection matrix
2014-10-04 20:12:09 -04:00
Corey Richardson
d2053a8366
Merge pull request #124 from tomaka/master
...
Update for rustc 0e784e168 2014-09-16 23:26:11 +0000
2014-09-18 10:45:40 -04:00
Tomaka17
1b5da61ccb
Update for rustc 0e784e168 2014-09-16 23:26:11 +0000
2014-09-18 16:19:26 +02:00
Brendan Zabarauskas
9ade4ce92d
Merge pull request #123 from HeroesGrave/master
...
Updated to latest Rust
2014-08-30 23:32:13 +10:00
HeroesGrave
896735a2b0
updated to latest Rust
2014-08-30 12:00:34 +12:00
kvark
2163d7b0a5
Merge pull request #120 from jeannekamikaze/master
...
Create Plane from point and normal.
2014-08-26 12:00:29 -04:00
Jeanne-Kamikaze
6f0573c79a
Added 'from_point_normal'
2014-08-26 17:08:24 +02:00
Brendan Zabarauskas
e54265cb61
Merge pull request #118 from bachm/master
...
Implemented Encodable, Decodable
2014-08-23 23:00:23 +10:00
bachm
825f5f2975
deriving Encodable, Decodable for all structs
2014-08-23 14:34:33 +02:00
Corey Richardson
eaba571886
Merge pull request #116 from Ogeon/master
...
Removed duplicate Aabb3 re-export
2014-08-18 22:25:57 -04:00
Erik Hedvall
cd5cdeacbf
Removed duplicate Aabb3 re-export
2014-08-18 15:05:25 +02:00
Corey Richardson
62cbb44e1c
Merge pull request #115 from bjz/re-export
...
Publicly re-export everything from the root crate
2014-08-16 01:14:39 -04:00
Brendan Zabarauskas
379dc499ec
Publicly re-export everything from the root crate
...
Closes #100
2014-08-16 14:53:54 +10:00
Brendan Zabarauskas
a010ddee54
Merge pull request #82 from brandonw/add-intersection-impls
...
Update intersection impls
2014-08-15 21:29:22 +10:00
Brandon Waskiewicz
4f17d73f23
Add Ray2<>Aabb2 intersection impl
2014-08-13 20:51:51 -04:00
Brandon Waskiewicz
814b845de7
Update line intersection
...
*Change line<>line intersection to be ray<>line.
*Update tests accordingly
*Clean up and simplify intersection logic
2014-08-13 20:51:44 -04:00
Corey Richardson
4a45bf3b53
Merge pull request #114 from bjz/array-stuff
...
Array stuff
2014-08-11 08:16:51 -04:00
Brendan Zabarauskas
3ff1eb583f
Add fixed-length array conversions
...
Closes #111
`FixedArray::from_fixed` cannot yet be implemented due to rust-lang/rust#16418
2014-08-11 21:10:38 +10:00
Brendan Zabarauskas
f93963919a
Transition codebase to the new method names
2014-08-11 18:55:14 +10:00
Brendan Zabarauskas
325ebad75e
Use more self-explanatory names for indexing methods
2014-08-11 17:02:25 +10:00
Brendan Zabarauskas
8999d88216
Remove deprecated functions from array traits
2014-08-11 16:54:39 +10:00
Brendan Zabarauskas
9aec9fb279
Merge pull request #113 from bjz/bench
...
Build benchmarks on travis
2014-08-11 16:32:51 +10:00
Brendan Zabarauskas
ce674a9802
Build benchmarks on travis
2014-08-11 16:28:50 +10:00
Brendan Zabarauskas
6f5638c93e
Merge pull request #112 from bjz/cargo
...
Switch to cargo
2014-08-11 16:17:40 +10:00
Brendan Zabarauskas
8e5500d581
Switch to cargo
2014-08-11 16:15:14 +10:00
Brendan Zabarauskas
5c07e8a421
Merge pull request #110 from ZeronSix/scale
...
Added Matrix3::from_diagonal
2014-08-10 06:10:07 +10:00
Vyacheslav Zeronov
535b5aa01f
Added Matrix3::from_diagonal
...
Useful for creation of scale matrices.
2014-08-08 13:46:25 +06:00
Brendan Zabarauskas
38364a6439
Merge pull request #109 from atheriel/rot-fix
...
Fix `Matrix2::from_angle()` invocation and add a test for the feature.
2014-08-06 22:03:26 +10:00
Aaron Jacobs
bfc8efff80
Fixes Matrix2::from_angle invocation and adds a test for the feature.
...
Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
2014-08-05 22:28:03 -07:00
Corey Richardson
e9a1723ef4
Merge pull request #106 from atheriel/vecdocs
...
Add a tutorial of sorts for working with cgmath's vectors.
2014-08-03 04:29:49 -07:00
Corey Richardson
0189aeadad
Merge pull request #107 from bjz/index-operators
...
Deprecate element and column accessors in favour of index operators
2014-07-29 15:38:47 -07:00
Brendan Zabarauskas
1e1f60379e
Deprecate element and column accessors in favour of index operators
...
Also removes some unnecessary `clone` calls.
2014-07-30 04:06:31 +10:00
Brendan Zabarauskas
f5cb1fb8e4
Merge pull request #105 from atheriel/vec_ops
...
Actually implement division, remainder, and index operators for vectors.
2014-07-30 02:19:03 +10:00
Aaron Jacobs
5c25683cfb
Adds a tutorial of sorts for working with cgmath's vectors.
...
There are several runnable code examples that should compile when
using `make doctest`.
Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
2014-07-28 23:05:15 -07:00
Aaron Jacobs
fddb3a7903
Implements the (mutable) index operator for vectors.
...
Again, this is possibly an oversight. The operators simply use the
mut_i() and i() methods which are demanded by the Array1<S> trait.
This means you may access the field `x` on a VectorN with vector[0]
syntax.
Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
2014-07-28 22:37:49 -07:00
Aaron Jacobs
7e81b258a9
Implements division and remainder operators for vectors.
...
This might have been an oversight at one point. Although the `rem_v`
and `div_v` methods are available for vectors, the actual operators
were not.
Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
2014-07-28 22:21:58 -07:00
Corey Richardson
ed5bb32f0b
Merge pull request #104 from omasanori/crate_name
...
Remove crate_id.
2014-07-28 19:49:31 -07:00
OGINO Masanori
e5f6d827da
Remove crate_id.
...
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-07-29 11:16:15 +09:00
Brendan Zabarauskas
7ca114d5aa
Merge pull request #103 from atheriel/rot_ex
...
Add a rotation example to the documentation.
2014-07-28 09:06:05 +10:00
Aaron Jacobs
5c7e70f3f6
Added doctest
to the Travis config.
...
This requires removing the `make clean` step, but I don't think this
will have any side effects.
Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
2014-07-25 19:38:58 -07:00
Brendan Zabarauskas
1f892cd684
Merge pull request #102 from prajwalkman/patch-1
...
Fix documentation link
2014-07-24 13:33:26 +10:00
Brendan Zabarauskas
efbc3cbf02
Merge pull request #101 from RobotGymnast/master
...
Fix inverted asserts
2014-07-24 13:33:09 +10:00
Aaron Jacobs
993efcc7a8
Add a good rotation example to Basis2.
...
This ads an example (the first?) on a useful feature of cgmath, and
also a Make target for running just the examples in the docs. This
may come in useful if more examples are added.
Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
2014-07-23 20:25:42 -07:00
Ben Foppa
44f3647b9a
fix travis build
2014-07-21 17:13:10 -04:00
Prajwal Manjunath
3eb711e243
Fix documentation link
2014-07-19 11:16:01 -07:00
Ben Foppa
784b9d8fa1
Fix inverted asserts
2014-07-18 11:55:53 -04:00
Brendan Zabarauskas
f489bb8501
Merge pull request #99 from bjz/travis
...
Fix travis/rust-ci
2014-07-13 22:43:32 -07:00
Brendan Zabarauskas
936c8f630f
Fix travis/rust-ci
2014-07-13 22:38:01 -07:00