pub fn check_positive(value: f64, name: &str) -> PhysicsResult<f64>Expand description
Returns Ok(value) if value > 0, otherwise Err(InvalidInput).
pub fn check_positive(value: f64, name: &str) -> PhysicsResult<f64>Returns Ok(value) if value > 0, otherwise Err(InvalidInput).