bigbang 0.0.10

An optimized framework for n-(hard)-body gravitational simulation
Documentation
use serde::{Deserialize, Serialize};
#[derive(Clone, PartialEq, Serialize, Deserialize)]
/// Used to represent which dimension the GravTree node has split on.
pub enum Dimension {
    X,
    Y,
    Z,
}

/// Convenience function that returns the Dimension as a &str.
impl Dimension {
    pub fn as_string(&self) -> &str {
        match *self {
            Dimension::X => "X",
            Dimension::Y => "Y",
            Dimension::Z => "Z",
        }
    }
}