From 50933afeb76c32686d109af9effc5a6bb5278671 Mon Sep 17 00:00:00 2001 From: John P Mayer Jr Date: Sun, 5 Apr 2015 01:09:42 -0400 Subject: [PATCH] again update deprecated Float trait, and add docs for the associated type --- src/traits/geometry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/traits/geometry.rs b/src/traits/geometry.rs index f9fb96b7..f9d92020 100644 --- a/src/traits/geometry.rs +++ b/src/traits/geometry.rs @@ -1,6 +1,6 @@ //! Traits of operations having a well-known or explicit geometric meaning. -use std::num::Float; +use num::Float; use std::ops::Neg; use traits::structure::{BaseFloat, Mat}; @@ -210,6 +210,7 @@ pub trait Dot { /// Traits of objects having an euclidian norm. pub trait Norm { + /// The number type type N: BaseFloat; /// Computes the norm of `self`.