castep-cell-io 0.1.0

A crate helping to parse, edit and save `castep` input file format `.cell`
Documentation
mod length_units;

pub use length_units::LengthUnit;

#[derive(Debug, Clone, Copy)]
pub struct Degrees(f64);

impl Degrees {
    pub fn new(degrees: f64) -> Self {
        Degrees(degrees)
    }
    pub fn value(&self) -> f64 {
        self.0
    }
}

#[derive(Debug, Clone, Copy)]
pub struct Radians(f64);

impl Radians {
    pub fn new(radians: f64) -> Self {
        Radians(radians)
    }
    pub fn value(&self) -> f64 {
        self.0
    }
}