use na::{Real, DefaultAllocator}; use traits::{Dimension, Alloc}; use aliases::Vec; pub fn fastNormalizeDot(x: &Vec, y: &Vec) -> N where DefaultAllocator: Alloc { // XXX: improve those. x.normalize().dot(&y.normalize()) } pub fn normalizeDot(x: &Vec, y: &Vec) -> N where DefaultAllocator: Alloc { // XXX: improve those. x.normalize().dot(&y.normalize()) }