nalgebra/nalgebra-glm/src/gtx/vector_angle.rs

17 lines
413 B
Rust
Raw Normal View History

2021-08-08 18:59:40 +08:00
use crate::RealNumber;
2019-03-23 21:29:07 +08:00
use crate::aliases::TVec;
/// The angle between two vectors.
2021-08-08 18:59:40 +08:00
pub fn angle<T: RealNumber, const D: usize>(x: &TVec<T, D>, y: &TVec<T, D>) -> T {
x.angle(y)
}
2021-08-08 18:59:40 +08:00
//pub fn oriented_angle<T: RealNumber>(x: &TVec2<T>, y: &TVec2<T>) -> T {
// unimplemented!()
//}
//
2021-08-08 18:59:40 +08:00
//pub fn oriented_angle_ref<T: RealNumber>(x: &TVec3<T>, y: &TVec3<T>, refv: &TVec3<T>) -> T {
// unimplemented!()
//}