again update deprecated Float trait, and add docs for the associated type

This commit is contained in:
John P Mayer Jr 2015-04-05 01:09:42 -04:00
parent 562c0909cc
commit 50933afeb7
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
//! Traits of operations having a well-known or explicit geometric meaning. //! Traits of operations having a well-known or explicit geometric meaning.
use std::num::Float; use num::Float;
use std::ops::Neg; use std::ops::Neg;
use traits::structure::{BaseFloat, Mat}; use traits::structure::{BaseFloat, Mat};
@ -210,6 +210,7 @@ pub trait Dot<N> {
/// Traits of objects having an euclidian norm. /// Traits of objects having an euclidian norm.
pub trait Norm { pub trait Norm {
/// The number type
type N: BaseFloat; type N: BaseFloat;
/// Computes the norm of `self`. /// Computes the norm of `self`.