again update deprecated Float trait, and add docs for the associated type
This commit is contained in:
parent
562c0909cc
commit
50933afeb7
|
@ -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<N> {
|
|||
|
||||
/// Traits of objects having an euclidian norm.
|
||||
pub trait Norm {
|
||||
/// The number type
|
||||
type N: BaseFloat;
|
||||
|
||||
/// Computes the norm of `self`.
|
||||
|
|
Loading…
Reference in New Issue