Commit graph

1145 commits

Author SHA1 Message Date
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
Brendan Zabarauskas
61a6810324 Merge pull request #96 from atheriel/vecmap
Add a map() method for vectors.
2014-07-05 19:24:12 -07:00
Brendan Zabarauskas
356ec1b2be Merge pull request #97 from HeroesGrave/master
Remove lifetime notations causing errors
2014-07-04 22:40:43 -07:00
Aaron Jacobs
d58fac1117 Use pointers for the column map.
Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
2014-07-04 17:37:24 -07:00
HeroesGrave
047dbefd6f remove lifetime notations causing errors 2014-07-05 12:15:10 +12:00
Aaron Jacobs
b0f706a96e Adds map() to Array1, and provides implementations for Vectors,
Points, Matrices, and Quaternions.

Signed-off-by: Aaron Jacobs <atheriel@gmail.com>
2014-07-02 21:34:26 -07:00
Brendan Zabarauskas
3a0ff55aa3 Merge pull request #95 from bvssvni/master
Added Rust-Empty
2014-06-30 21:12:18 -07:00
Sven Nilsen
bf79381412 Added Rust-Empty
This fixes symlink build in the Piston infrastructure.

* Does not affect the existing way of building
* Added more git filters
2014-07-01 01:32:46 +02:00