diff --git a/src/base/cg.rs b/src/base/cg.rs index 098795f1..84fff1a5 100644 --- a/src/base/cg.rs +++ b/src/base/cg.rs @@ -15,12 +15,12 @@ use base::allocator::Allocator; use geometry::{Isometry, IsometryMatrix3, Orthographic3, Perspective3, Point, Point3, Rotation2, Rotation3}; -use alga::general::{Field, Real}; +use alga::general::{Ring, Real}; use alga::linear::Transformation; impl MatrixN where - N: Scalar + Field, + N: Scalar + Ring, DefaultAllocator: Allocator, { /// Creates a new homogeneous matrix that applies the same scaling factor on each dimension. @@ -144,7 +144,7 @@ impl Matrix4 { } } -impl> SquareMatrix { +impl> SquareMatrix { /// Computes the transformation equal to `self` followed by an uniform scaling factor. #[inline] pub fn append_scaling(&self, scaling: N) -> MatrixN @@ -231,7 +231,7 @@ impl> SquareMatrix { } } -impl> SquareMatrix { +impl> SquareMatrix { /// Computes in-place the transformation equal to `self` followed by an uniform scaling factor. #[inline] pub fn append_scaling_mut(&mut self, scaling: N)