commit
d9608b5757
2 changed files with 3 additions and 3 deletions
|
@ -417,7 +417,7 @@ impl<S: BaseFloat + 'static> Rotation<S, Vector3<S>, Point3<S>> for Quaternion<S
|
||||||
fn invert_self(&mut self) { *self = self.invert() }
|
fn invert_self(&mut self) { *self = self.invert() }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<S: BaseFloat> Rotation3<S> for Quaternion<S> {
|
impl<S: BaseFloat> Rotation3<S> for Quaternion<S> where S: 'static {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from_axis_angle(axis: &Vector3<S>, angle: Rad<S>) -> Quaternion<S> {
|
fn from_axis_angle(axis: &Vector3<S>, angle: Rad<S>) -> Quaternion<S> {
|
||||||
let (s, c) = sin_cos(angle.mul_s(cast(0.5f64).unwrap()));
|
let (s, c) = sin_cos(angle.mul_s(cast(0.5f64).unwrap()));
|
||||||
|
|
|
@ -149,7 +149,7 @@ impl<S: BaseFloat + 'static, R: Rotation3<S>> ToMatrix4<S> for Decomposed<S, Vec
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<S: BaseFloat, R: Rotation3<S>> Transform3<S> for Decomposed<S,Vector3<S>,R> {}
|
impl<S: BaseFloat, R: Rotation3<S>> Transform3<S> for Decomposed<S,Vector3<S>,R> where S: 'static {}
|
||||||
|
|
||||||
impl<S: BaseFloat, R: fmt::Show + Rotation3<S>> fmt::Show for Decomposed<S,Vector3<S>,R> {
|
impl<S: BaseFloat, R: fmt::Show + Rotation3<S>> fmt::Show for Decomposed<S,Vector3<S>,R> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
@ -200,4 +200,4 @@ impl<S: BaseNum> ToMatrix4<S> for AffineMatrix3<S> {
|
||||||
#[inline] fn to_matrix4(&self) -> Matrix4<S> { self.mat.clone() }
|
#[inline] fn to_matrix4(&self) -> Matrix4<S> { self.mat.clone() }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<S: BaseFloat> Transform3<S> for AffineMatrix3<S> {}
|
impl<S: BaseFloat> Transform3<S> for AffineMatrix3<S> where S: 'static {}
|
||||||
|
|
Loading…
Reference in a new issue