get_angle

Function get_angle 

Source
pub fn get_angle<T>(horizontal: T, vertical: T) -> Result<f64>
where T: Copy + NumCast + PartialOrd + Zero,
Expand description

Returns the angle (from straight up, going clockwise) represented by this slope in radians.

assert_eq!(aoclib_rs::point::get_angle(1, 0).unwrap(), std::f64::consts::FRAC_PI_2);