Function skeletal_animation::math::vec4_normalized_sub
source · pub fn vec4_normalized_sub<T>(a: [T; 4], b: [T; 4]) -> [T; 4]where
T: Copy + One + Sqrt + Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Div<Output = T>,
Expand description
Computes the normalized difference between two vectors.
This is often used to get direction from ‘b’ to ‘a’.