Function angle_2d

Source
pub fn angle_2d(vec_a: [[f64; 2]; 2], vec_b: [[f64; 2]; 2]) -> f64
Expand description

Calculate the angle from vec_a to vec_b, in 2d space, going clockwise.

ยงArguments

  • vec_a - Start and end coordinates of the first vector.
  • vec_b - Start and end coordinates of the second vector.