nyx_space::utils

Function perpv

Source
pub fn perpv(a: &Vector3<f64>, b: &Vector3<f64>) -> Vector3<f64>
Expand description

Returns the components of vector a orthogonal to b

§Arguments

  • a - The vector whose orthogonal components are to be calculated.
  • b - The vector to which a is to be made orthogonal.

§Returns

A new vector that is the orthogonal projection of a onto b.