diff --git a/src/quaternion.rs b/src/quaternion.rs index 45e7a96..b1ed288 100644 --- a/src/quaternion.rs +++ b/src/quaternion.rs @@ -417,7 +417,7 @@ impl Rotation, Point3> for Quaternion Rotation3 for Quaternion { +impl Rotation3 for Quaternion where S: 'static { #[inline] fn from_axis_angle(axis: &Vector3, angle: Rad) -> Quaternion { let (s, c) = sin_cos(angle.mul_s(cast(0.5f64).unwrap())); diff --git a/src/transform.rs b/src/transform.rs index f83397b..ea29f70 100644 --- a/src/transform.rs +++ b/src/transform.rs @@ -149,7 +149,7 @@ impl> ToMatrix4 for Decomposed> Transform3 for Decomposed,R> {} +impl> Transform3 for Decomposed,R> where S: 'static {} impl> fmt::Show for Decomposed,R> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { @@ -200,4 +200,4 @@ impl ToMatrix4 for AffineMatrix3 { #[inline] fn to_matrix4(&self) -> Matrix4 { self.mat.clone() } } -impl Transform3 for AffineMatrix3 {} +impl Transform3 for AffineMatrix3 where S: 'static {}