Update changelog.

This commit is contained in:
sebcrozet 2018-05-27 12:25:58 +02:00
parent 2814e09d31
commit 3ee13ec528
2 changed files with 7 additions and 3 deletions

View File

@ -4,6 +4,10 @@ documented here.
This project adheres to [Semantic Versioning](http://semver.org/).
## [0.16.0] - WIP
### Added
* Add construction of a `Point` from an array by implementing the `From` trait.
## [0.15.0]
The most notable change of this release is the support for using part of the library without the rust standard
library (i.e. it supports `#![no_std]`). See the corresponding [documentation](http://nalgebra.org/wasm_and_embedded_programming/).

View File

@ -128,12 +128,12 @@ componentwise_constructors_impl!(
macro_rules! from_array_impl(
($($D: ty, $len: expr);*) => {$(
impl <N: Scalar> From <[N; $len]> for Point <N, $D> {
fn from (coords : [N; $len]) -> Self {
impl <N: Scalar> From<[N; $len]> for Point<N, $D> {
fn from (coords: [N; $len]) -> Self {
Point::from_coordinates(coords.into())
}
}
)*}
);
from_array_impl!(U1,1; U2,2; U3,3; U4,4; U5,5; U6,6);
from_array_impl!(U1, 1; U2, 2; U3, 3; U4, 4; U5, 5; U6, 6);