2016-03-25 02:03:52 +08:00
|
|
|
# Change Log
|
|
|
|
All notable changes to `nalgebra`, starting with the version 0.6.0 will be
|
2016-04-01 03:31:01 +08:00
|
|
|
documented here.
|
2016-03-25 02:03:52 +08:00
|
|
|
|
|
|
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
|
|
2016-04-18 14:39:46 +08:00
|
|
|
## [0.9.0] - WIP
|
2016-08-13 03:46:40 +08:00
|
|
|
### Modified
|
2016-04-18 14:29:22 +08:00
|
|
|
* Renamed:
|
|
|
|
- `::from_col_vector` -> `::from_column_vector`
|
|
|
|
- `::from_col_iter` -> `::from_column_iter`
|
|
|
|
- `.col_slice` -> `.column_slice`
|
|
|
|
- `.set_col` -> `.set_column`
|
|
|
|
- `::canonical_basis_with_dim` -> `::canonical_basis_with_dimension`
|
2016-04-18 14:39:46 +08:00
|
|
|
- `::from_elem` -> `::from_element`
|
2016-07-24 02:57:28 +08:00
|
|
|
- `DiagMut` -> `DiagonalMut`
|
2016-08-16 16:48:41 +08:00
|
|
|
- `UnitQuaternion::new` becomes `UnitQuaternion::from_scaled_axis` or
|
|
|
|
`UnitQuaternion::from_axisangle`. The new `::new` method now requires a
|
|
|
|
not-normalized quaternion.
|
|
|
|
|
|
|
|
Methods names starting with `new_with_` now start with `from_`. This is more
|
|
|
|
idiomatic in Rust.
|
2016-08-13 03:46:40 +08:00
|
|
|
|
|
|
|
The `Norm` trait now uses an associated type instead of a type parameter.
|
|
|
|
Other similar trait changes are to be expected in the future, e.g., for the
|
|
|
|
`Diagonal` trait.
|
|
|
|
|
|
|
|
Methods marked `unsafe` for reasons unrelated to memory safety are no
|
|
|
|
longer unsafe. Instead, their name end with `_unchecked`. In particular:
|
|
|
|
* `Rotation3::new_with_matrix` -> `Rotation3::new_with_matrix_unchecked`
|
|
|
|
* `PerspectiveMatrix3::new_with_matrix` -> `PerspectiveMatrix3::new_with_matrix_unchecked`
|
|
|
|
* `OrthographicMatrix3::new_with_matrix` -> `OrthographicMatrix3::new_with_matrix_unchecked`
|
|
|
|
|
|
|
|
### Added
|
|
|
|
- A `Unit<T>` type that wraps normalized values. In particular,
|
2016-08-16 16:48:41 +08:00
|
|
|
`UnitQuaternion<N>` is now an alias for `Unit<Quaternion<N>>`.
|
|
|
|
- `.ln()`, `.exp()` and `.powf(..)` for quaternions and unit quaternions.
|
2016-08-13 03:46:40 +08:00
|
|
|
- `::from_parts(...)` to build a quaternion from its scalar and vector
|
|
|
|
parts.
|
|
|
|
- The `Norm` trait now has a `try_normalize()` that returns `None` if the
|
|
|
|
norm is too small.
|
|
|
|
- The `BaseFloat` and `FloatVector` traits now inherit from `ApproxEq` as
|
|
|
|
well. It is clear that performing computations with floats requires
|
|
|
|
approximate equality.
|
2016-04-18 14:29:22 +08:00
|
|
|
|
2016-08-21 05:13:53 +08:00
|
|
|
Still WIP: add implementations of abstract algebra traits from the `algebra`
|
|
|
|
crate for vectors, rotations and points. To enable them, activate the
|
|
|
|
`abstract_algebra` feature.
|
|
|
|
|
2016-04-17 23:58:17 +08:00
|
|
|
## [0.8.0]
|
2016-08-13 03:46:40 +08:00
|
|
|
### Modified
|
2016-04-17 23:58:17 +08:00
|
|
|
* Almost everything (types, methods, and traits) now use full names instead
|
|
|
|
of abbreviations (e.g. `Vec3` becomes `Vector3`). Most changes are abvious.
|
|
|
|
Note however that:
|
|
|
|
- `::sqnorm` becomes `::norm_squared`.
|
|
|
|
- `::sqdist` becomes `::distance_squared`.
|
|
|
|
- `::abs`, `::min`, etc. did not change as this is a common name for
|
|
|
|
absolute values on, e.g., the libc.
|
|
|
|
- Dynamically sized structures keep the `D` prefix, e.g., `DMat` becomes
|
|
|
|
`DMatrix`.
|
|
|
|
* All files with abbreviated names have been renamed to their full version,
|
|
|
|
e.g., `vec.rs` becomes `vector.rs`.
|
|
|
|
|
2016-04-17 19:41:01 +08:00
|
|
|
## [0.7.0]
|
|
|
|
### Added
|
|
|
|
* Added implementation of assignement operators (+=, -=, etc.) for
|
|
|
|
everything.
|
|
|
|
### Modified
|
|
|
|
* Points and vectors are now linked to each other with associated types
|
2016-04-17 23:26:58 +08:00
|
|
|
(on the PointAsVector trait).
|
2016-04-17 19:41:01 +08:00
|
|
|
|
|
|
|
|
2016-04-01 03:31:01 +08:00
|
|
|
## [0.6.0]
|
|
|
|
**Announcement:** a users forum has been created for `nalgebra`, `ncollide`, and `nphysics`. See
|
|
|
|
you [there](http://users.nphysics.org)!
|
|
|
|
|
2016-03-25 02:03:52 +08:00
|
|
|
### Added
|
2016-04-01 03:46:01 +08:00
|
|
|
* Added a dependency to [generic-array](https://crates.io/crates/generic-array). Feature-gated:
|
|
|
|
requires `features="generic_sizes"`.
|
2016-04-17 23:26:58 +08:00
|
|
|
* Added statically sized vectors with user-defined sizes: `VectorN`. Feature-gated: requires
|
2016-04-01 03:46:01 +08:00
|
|
|
`features="generic_sizes"`.
|
|
|
|
* Added similarity transformations (an uniform scale followed by a rotation followed by a
|
2016-04-17 23:26:58 +08:00
|
|
|
translation): `Similarity2`, `Similarity3`.
|
2016-03-25 02:03:52 +08:00
|
|
|
|
|
|
|
### Removed
|
2016-04-17 23:26:58 +08:00
|
|
|
* Removed zero-sized elements `Vector0`, `Point0`.
|
|
|
|
* Removed 4-dimensional transformations `Rotation4` and `Isometry4` (which had an implementation to incomplete to be useful).
|
2016-03-25 02:09:32 +08:00
|
|
|
|
|
|
|
### Modified
|
2016-04-01 03:46:01 +08:00
|
|
|
* Vectors are now multipliable with isometries. This will result into a pure rotation (this is how
|
2016-03-25 02:09:32 +08:00
|
|
|
vectors differ from point semantically: they design directions so they are not translatable).
|
2016-04-17 23:26:58 +08:00
|
|
|
* `{Isometry3, Rotation3}::look_at` reimplemented and renamed to `::look_at_rh` and `::look_at_lh` to agree
|
2016-04-01 03:46:01 +08:00
|
|
|
with the computer graphics community (in particular, the GLM library). Use the `::look_at_rh`
|
2016-04-01 03:31:01 +08:00
|
|
|
variant to build a view matrix that
|
|
|
|
may be successfully used with `Persp` and `Ortho`.
|
2016-04-17 23:26:58 +08:00
|
|
|
* The old `{Isometry3, Rotation3}::look_at` implementations are now called `::new_observer_frame`.
|
2016-04-01 03:46:01 +08:00
|
|
|
* Rename every `fov` on `Persp` to `fovy`.
|
2016-04-01 03:31:01 +08:00
|
|
|
* Fixed the perspective and orthographic projection matrices.
|