cgmath/CHANGELOG.md

245 lines
9.2 KiB
Markdown
Raw Normal View History

2015-12-12 02:27:47 +00:00
# Change Log
All notable changes to this project will be documented in this file, following
the format defined at [keepachangelog.com](http://keepachangelog.com/).
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
2016-08-17 13:10:27 +00:00
## [v0.11.0] - 2016-08-17
### Added
- `Quaternion::from_arc`
### Changed
- Change the angle types to be tuple structs
- Make from-angle constructors take generic `Into<Rad<S>>` values
- Fix `Decomposed::concat` implementation
2016-06-05 10:11:01 +00:00
## [v0.10.0] - 2016-05-11
### Added
- A `MetricSpace` trait for types that have a distance between elements.
- `EuclideanSpace::{midpoint, centroid}` functions with default
implementations.
- `Vector1` and `Point1` structs.
- Serde support behind the `eders` feature flag.
- An `ApproxEq` implementation for `Decomposed`.
### Changed
2016-06-05 10:11:01 +00:00
- Depend on the `num-traits` crate rather than `num`, seeing as we only use the
traits in `num`. `num_traits` has also been re-exported so that you can more
easily use these in your project.
- Use an `Euler` type for euler angle conversions.
- Constrain `InnerSpace` by `MetricSpace`.
- Constrain `Rotation` by `One`
- Implement `Transform` and `Transform3` for `Matrix4`.
- Implement `Transform`, `Transform2`, and `Transform3` for `Matrix4`.
- Fix `Euler`-`Quaternion` and `Quaternion`-`Euler` conversions. The axes are
now correct, and the angles are applied in _x_-_y_-_z_ order. The conversion now
matches the conversion from axis angle.
- Fix `Euler`-`{Matrix3, Matrix4}` conversions.
## Removed
- `Rotation::transform_as_point`
- `AffineMatrix3`
- `Rotation::invert_self`
- `Matrix::invert_self`
2016-04-20 12:59:15 +00:00
## [v0.9.1] - 2016-04-20
### Changed
- Fix angle assignment operators so that they actually mutate `self`.
2016-04-19 12:11:26 +00:00
## [v0.9.0] - 2016-04-19
### Changed
- Assignment operators implementations have been stabilised, to coincide with
their [stabilisation in Rust 1.8](http://blog.rust-lang.org/2016/04/14/Rust-1.8.html).
- Renames `Vector` trait to `VectorSpace`.
- Renames `EuclideanVector` to `InnerSpace`.
- Renames `Point` to `EuclideanSpace`, and `Point::Vector` to `EuclideanSpace::Diff`.
- `Quaternion`s now implement `VectorSpace` and `InnerSpace` for the functions
they share.
- The `Matrix` trait is now constraint by `VectorSpace`, with `Matrix::Element`
removed in favor of `VectorSpace::Scalar`.
## [v0.8.0] - 2016-04-06
2016-04-06 13:06:09 +00:00
2015-12-29 10:54:52 +00:00
### Added
- Implements `fmt::Debug` for `Basis2`, `Basis3`, and `AffineMatrix3`
2016-03-25 04:30:44 +00:00
- A `prelude` module for easy importing of common traits.
2016-03-26 05:41:43 +00:00
- Constrained conversion functions for assisting in situations where type
inference is difficult.
2016-03-26 02:35:31 +00:00
- An `ElementWise` trait for non-mathematical element-wise operations.
2016-04-04 10:43:51 +00:00
- A default implementation for `EuclideanVector::angle`.
2015-12-29 10:54:52 +00:00
### Changed
- Improves the `fmt::Debug` impls for `Vector`, `Matrix`, `Point`, `Decomposed`,
`Quaternion` and `Angle` to make them easier to derive, and have clearer
formatting.
2016-03-25 01:47:10 +00:00
- Marks vectors, points, matrices, and angles as `#[repr(C, packed)]`.
2016-03-27 05:24:31 +00:00
- Renames the `Vector::{length, length2}` functions to `Vector::{magnitude, magnitude2}`.
2016-04-04 10:43:51 +00:00
- Move `Angle::new` to be directly implemented on the `Rad` and `Deg` types.
- Move `Vector::dot` to `EuclideanVector` trait.
- Move `Vector::from_value` to `Array` trait.
2015-12-29 10:54:52 +00:00
2016-03-26 02:35:31 +00:00
### Removed
- The non-mathematical operator trait implementations have been removed from
the `Vector` trait, in favor of the `ElementWise` trait.
2016-04-03 03:52:07 +00:00
- `Angle::equiv`.
2016-04-04 10:43:51 +00:00
- Remove `neg_self` method on vectors and matrices.
2016-03-26 02:35:31 +00:00
2015-12-23 06:42:46 +00:00
## [v0.7.0] - 2015-12-23
### Added
2015-12-21 10:02:56 +00:00
- Add missing by-ref and by-val permutations of `Vector`, `Matrix`, `Point`,
`Quaternion` and `Angle` operators.
2015-12-13 01:27:20 +00:00
- Ease lifetime constraints by removing `'static` from some scalar type
parameters.
2015-12-13 01:40:23 +00:00
- Weaken type constraints on `perspective` function to take an `Into<Rad<S>>`.
2015-12-13 09:35:03 +00:00
- Add `Angle::new` for constructing angles from a unitless scalar.
2015-12-22 11:37:56 +00:00
- Implement assignment operators for nightly builds, enabled by the `"unstable"`
feature.
2015-12-13 01:40:23 +00:00
### Changed
2015-12-21 10:02:56 +00:00
- `Vector`, `Matrix`, `Point`, and `Angle` are now constrained to require
specific operators to be overloaded. This means that generic code can now use
2015-12-13 09:35:03 +00:00
operators, instead of the operator methods.
2015-12-13 01:40:23 +00:00
- Take a `Rad` for `ProjectionFov::fovy`, rather than arbitrary `Angle`s. This
simplifies the signature of `PerspectiveFov` from `PerspectiveFov<S, A>` to
`PerspectiveFov<S>`.
2015-12-13 09:35:03 +00:00
- The following trait constraints were removed from `Angle`: `Debug`,
`ScalarConv`, `Into<Rad<S>>`, `Into<Deg<S>>`.
- `Angle` no longer requires `One`, and the implementations have been removed
from `Deg` and `Rad`. This is because angles do not close over multiplication,
and therefore cannot have a multiplicative identity. If we were truly accurate,
`Angle * Angle` would return an `Angle^2` (not supported by the current api).
2015-12-13 17:47:33 +00:00
- Make remainder operators on `Angle`s make sense from the perspective of
dimensional analysis.
2015-12-13 09:35:03 +00:00
- Moved free trigonometric functions onto `Angle`.
2015-12-12 12:40:05 +00:00
2015-12-12 11:24:53 +00:00
### Removed
- Remove redundant `Point::{min, max}` methods - these are now covered by the
`Array::{min, max}` methods that were introduced in 0.5.0.
2015-12-12 23:27:22 +00:00
- Removed `ToComponents`, `ToComponents2`, and `ToComponents3`. If you were
relying on `ToComponents::decompose`, you can produce the same effect by
accessing the fields on `Decomposed` directly. To create the scale vector,
use: `Vector::from_value(transform.scale)`.
- Removed `CompositeTransform`, `CompositeTransform2`, and `CompositeTransform3`.
2015-12-12 12:40:05 +00:00
- Remove `Vector::one`. Vectors don't really have a multiplicative identity.
If you really want a `one` vector, you can do something like:
`Vector::from_value(1.0)`.
2015-12-21 10:02:56 +00:00
- Remove operator methods from `Vector`, `Matrix`, `Point`, and `Angle` traits
in favor of operator overloading.
2015-12-22 11:37:56 +00:00
- Remove `*_self` methods from `Vector`, `Matrix`, `Point`, and `Angle`. The
operator methods can be used via the unstable assignment operators.
2015-12-13 09:35:03 +00:00
- Remove `#[derive(Hash)]` from `Deg` and `Rad`. This could never really be used
these types, because they expect to be given a `BaseFloat` under normal
circumstances.
2015-12-12 11:24:53 +00:00
2015-12-12 02:30:25 +00:00
## [v0.6.0] - 2015-12-12
2015-12-12 02:27:47 +00:00
### Added
- This CHANGELOG for keeping track of notable changes.
- `Matrix4::{from_scale, from_nonuniform_scale}` for easily constructing
homogeneous scale matrices.
### Changed
- Renamed `SquareMatrix::one` to `SquareMatrix::identity`. `identity` is easier
to search for,
and the more common name for the multiplicative identity for matrices.
- Matrix impls have now been constrained to `S: BaseFloat`.
## [v0.5.0] - 2015-11-20
### Changed
- Take many point and vector parameters by value.
- Take point and vector operator overloads by value.
- Divide `Matrix` trait into `Matrix` and `SquareMatrix`, opening the door for
non-square matrices in the future.
- Make many trait type parameters associated types.
- Move element-wise methods from `Vector` and `Point` onto the `Array1` trait,
and rename it to `Array`.
- Make pointer access methods on `Array` match the naming scheme of those in the
standard library.
### Removed
- Removed collision types: `Ray`, `Plane`, `Frustum`, `Aabb2`, `Aabb3` `Obb2`,
`Obb3` `Sphere`, `Cylinder`. These can now be found at
[csherratt/collision-rs](https://github.com/csherratt/collision-rs).
- Remove `Array2` trait, moving methods onto the `Matrix` trait.
## [v0.4.0] - 2015-10-25
## [v0.3.1] - 2015-09-20
## [v0.3.0] - 2015-09-20
## [v0.2.0] - 2015-05-11
## [v0.1.6] - 2015-05-10
## [v0.1.5] - 2015-04-25
## [v0.1.4] - 2015-04-24
## [v0.1.3] - 2015-04-06
## [v0.1.2] - 2015-04-01
## [v0.1.1] - 2015-03-25
## [v0.1.0] - 2015-03-15
## [v0.0.8] - 2015-03-09
## [v0.0.7] - 2015-03-01
## [v0.0.6] - 2015-02-21
## [v0.0.5] - 2015-02-16
## [v0.0.4] - 2015-02-11
## [v0.0.3] - 2015-02-08
## v0.0.1 - 2014-06-24
2016-08-17 13:10:27 +00:00
[Unreleased]: https://github.com/bjz/cgmath/compare/v0.11.0...HEAD
[v0.11.0]: https://github.com/bjz/cgmath/compare/v0.10.0...v0.11.0
2016-06-05 10:11:01 +00:00
[v0.10.0]: https://github.com/bjz/cgmath/compare/v0.9.1...v0.10.0
[v0.9.1]: https://github.com/bjz/cgmath/compare/v0.9.0...v0.9.1
2016-04-19 12:11:26 +00:00
[v0.9.0]: https://github.com/bjz/cgmath/compare/v0.8.0...v0.9.0
[v0.8.0]: https://github.com/bjz/cgmath/compare/v0.7.0...v0.8.0
2015-12-23 06:42:46 +00:00
[v0.7.0]: https://github.com/bjz/cgmath/compare/v0.6.0...v0.7.0
[v0.6.0]: https://github.com/bjz/cgmath/compare/v0.5.0...v0.6.0
[v0.5.0]: https://github.com/bjz/cgmath/compare/v0.4.0...v0.5.0
[v0.4.0]: https://github.com/bjz/cgmath/compare/v0.3.1...v0.4.0
[v0.3.1]: https://github.com/bjz/cgmath/compare/v0.3.0...v0.3.1
[v0.3.0]: https://github.com/bjz/cgmath/compare/v0.2.0...v0.3.0
[v0.2.0]: https://github.com/bjz/cgmath/compare/v0.1.6...v0.2.0
[v0.1.6]: https://github.com/bjz/cgmath/compare/v0.1.5...v0.1.6
[v0.1.5]: https://github.com/bjz/cgmath/compare/v0.1.4...v0.1.5
[v0.1.4]: https://github.com/bjz/cgmath/compare/v0.1.3...v0.1.4
[v0.1.3]: https://github.com/bjz/cgmath/compare/v0.1.2...v0.1.3
[v0.1.2]: https://github.com/bjz/cgmath/compare/v0.1.1...v0.1.2
[v0.1.1]: https://github.com/bjz/cgmath/compare/v0.1.0...v0.1.1
[v0.1.0]: https://github.com/bjz/cgmath/compare/v0.0.8...v0.1.0
[v0.0.8]: https://github.com/bjz/cgmath/compare/v0.0.7...v0.0.8
[v0.0.7]: https://github.com/bjz/cgmath/compare/v0.0.6...v0.0.7
[v0.0.6]: https://github.com/bjz/cgmath/compare/v0.0.5...v0.0.6
[v0.0.5]: https://github.com/bjz/cgmath/compare/v0.0.4...v0.0.5
[v0.0.4]: https://github.com/bjz/cgmath/compare/v0.0.3...v0.0.4
[v0.0.3]: https://github.com/bjz/cgmath/compare/v0.0.1...v0.0.3