forked from M-Labs/nalgebra
20 lines
477 B
Rust
20 lines
477 B
Rust
|
use na::{DefaultAllocator, Real};
|
||
|
|
||
|
use traits::{Dimension, Alloc};
|
||
|
use aliases::Vec;
|
||
|
|
||
|
|
||
|
/// The angle between two vectors.
|
||
|
pub fn angle<N: Real, D: Dimension>(x: &Vec<N, D>, y: &Vec<N, D>) -> N
|
||
|
where DefaultAllocator: Alloc<N, D> {
|
||
|
x.angle(y)
|
||
|
}
|
||
|
|
||
|
//pub fn oriented_angle<N: Real>(x: &Vec<N, U2>, y: &Vec<N, U2>) -> N {
|
||
|
// unimplemented!()
|
||
|
//}
|
||
|
//
|
||
|
//pub fn oriented_angle_ref<N: Real>(x: &Vec<N, U3>, y: &Vec<N, U3>, refv: &Vec<N, U3>) -> N {
|
||
|
// unimplemented!()
|
||
|
//}
|