Merge #473
473: Update some dependencies r=kvark a=Eijebong Co-authored-by: Bastien Orivel <eijebong@bananium.fr>
This commit is contained in:
commit
5e758d13bd
2 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "cgmath"
|
name = "cgmath"
|
||||||
version = "0.16.1"
|
version = "0.17.0"
|
||||||
authors = ["Brendan Zabarauskas <bjzaba@yahoo.com.au>"]
|
authors = ["Brendan Zabarauskas <bjzaba@yahoo.com.au>"]
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
description = "A linear algebra and mathematics library for computer graphics."
|
description = "A linear algebra and mathematics library for computer graphics."
|
||||||
|
@ -21,13 +21,13 @@ unstable = []
|
||||||
swizzle = []
|
swizzle = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
approx = "0.2"
|
approx = "0.3"
|
||||||
mint = { version = "0.5", optional = true }
|
mint = { version = "0.5", optional = true }
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
rand = "0.5"
|
rand = "0.6"
|
||||||
serde = { version = "1.0", features = ["serde_derive"], optional = true }
|
serde = { version = "1.0", features = ["serde_derive"], optional = true }
|
||||||
simd = { version = "0.2", optional = true }
|
simd = { version = "0.2", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
glium = "0.19"
|
glium = "0.23"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
|
@ -208,13 +208,13 @@ macro_rules! impl_angle {
|
||||||
S::ulps_eq(&self.0, &other.0, epsilon, max_ulps)
|
S::ulps_eq(&self.0, &other.0, epsilon, max_ulps)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<S> Distribution<$Angle<S>> for Standard
|
impl<S> Distribution<$Angle<S>> for Standard
|
||||||
where Standard: Distribution<S>,
|
where Standard: Distribution<S>,
|
||||||
S: BaseFloat + SampleUniform {
|
S: BaseFloat + SampleUniform {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> $Angle<S> {
|
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> $Angle<S> {
|
||||||
$Angle(rng.gen_range(cast(-$hi).unwrap(), cast($hi).unwrap()))
|
$Angle(rng.gen_range(cast::<_, S>(-$hi).unwrap(), cast::<_, S>($hi).unwrap()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue