Skip to main content

vec3_signed_angle

Function vec3_signed_angle 

Source
pub fn vec3_signed_angle(a: &Vec3, b: &Vec3, axis: &Vec3) -> Real
Expand description

Signed angle (in radians) from a to b measured about axis.

All three vectors should be unit vectors; axis must be perpendicular to both a and b for the result to be meaningful.