1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/// `Vector2`, `Vector3`, `Vector4`
pub mod vector;
/// `Matrix4x4`
pub mod matrix;
/// `RGB`, `RGBA`, `RGB8`, `RGBA8`, `HSV`
pub mod color;

mod quaternion;
pub use quaternion::Quaternion;

/// `Degrees` or `Radians`
/// 
/// Used as an input for various rotation functions
pub enum Angle {
    Degrees,
    Radians,
}
use core::fmt::Display;
impl Display for Angle {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let output = match self {
            Angle::Degrees => "Angle: Degrees",
            Angle::Radians => "Angle: Radians",
        };
        write!( f, "{}", output )
    }
}