fphics 0.2.0

A pure zero-dependency rust physics and maths library that deals with mathematical conversions, and physics calculations using accurate, verified formulas - with zero estimations to ensure accuracy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use fphics::maths::*;
use fphics::errors::FphicsError;

fn main() -> Result<(), FphicsError> {
	let cm = 1_234.5;

	let centimetre = Unit::new().from_metric_length(MetricLengthUnit::CentiMetre, cm);
	
	let metre = centimetre.metric_to_metric(MetricLengthUnit::Metre)?;

	println!("{}cm is {}m", cm, metre);

    Ok(())
}