2021-08-08 18:59:40 +08:00
|
|
|
use crate::RealNumber;
|
2018-09-22 19:18:59 +08:00
|
|
|
|
2019-03-23 21:29:07 +08:00
|
|
|
use crate::aliases::TVec;
|
2018-09-22 19:18:59 +08:00
|
|
|
|
|
|
|
/// 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 {
|
2018-09-22 19:18:59 +08:00
|
|
|
x.angle(y)
|
|
|
|
}
|
|
|
|
|
2021-08-08 18:59:40 +08:00
|
|
|
//pub fn oriented_angle<T: RealNumber>(x: &TVec2<T>, y: &TVec2<T>) -> T {
|
2018-09-22 19:18:59 +08:00
|
|
|
// 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 {
|
2018-09-22 19:18:59 +08:00
|
|
|
// unimplemented!()
|
|
|
|
//}
|