From 23bde7dfd0b6bbb56cb734449846b895094cb9b0 Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Sat, 22 Sep 2018 15:39:58 +0200 Subject: [PATCH] Reduce requiremens from Real to Ring on the cg module. --- src/base/cg.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)