pub fn as_angle(self) -> f32 {
        match self {
            Self::Right => 0.,
            Self::Up => std::f32::consts::FRAC_PI_2,
            Self::Left => std::f32::consts::PI,
            Self::Down => 1.5 * std::f32::consts::PI,
        }
    }
/// CartesianDirection converted to angle (in radians)
CartesianDirection converted to angle (in radians)
CartesianDirection converted to angle ( in radians )
pub fn as_angle(self) -> f32 {
        match self {
            Self::Right => 0.,
            Self::Up => std::f32::consts::FRAC_PI_2,
            Self::Left => std::f32::consts::PI,
            Self::Down => 1.5 * std::f32::consts::PI,
        }
    }
pub fn as_angle ( self ) -> f32 { match self { Self :: Right => 0. , Self :: Up => std :: f32 :: consts :: FRAC_PI_2 , Self :: Left => std :: f32 :: consts :: PI , Self :: Down => 1.5 * std :: f32 :: consts :: PI , } }
CartesianDirection converted to angle (in radians)
CartesianDirection converted to angle ( in radians )
self