Function tool::core::geometry::direct_angle[][src]

pub fn direct_angle<T>(v1: &Vector<T>, v2: &Vector<T>, up: &Vector<T>) -> T where
    T: RealField, 
Expand description

Compute the direct angle from 0 to 2 PI between two vectors and an upward vector.

Definition

The direct angle is defined as the angle between the two vectors, from 0 to $\tau$. It is opposed to the smallest angle between two vectors, from 0 to $\pi$. The direct angle is built using the normal vector from the plane defined by the two vectors.