unitforge 0.2.7

A library for unit and quantity consistent computations in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Unitforge

## Overview

**Unitforge** is a Rust crate designed for safe handling of physical quantities of units. New quantities and relations can be set up via small macros.

## Features

- **Quantity inference:** Resulting quantities of arithmetic operations are inferred at compile time.
- **Unit conversion:** Quantities can be set or read in arbitrary units.
- **Computing Precision** Values are stored in exponential format (f64*10^i32) to prevent floating point precision issues.
- **Formating** Quantities are displayed with 4 significant digits and configured display unit.
- **ndarray support:** Quantities may be used as inner types for `ndarray`.
- **3D Vector and matrix operations:** Structs for 3D vectors and matrices are included to allow fast and unit-safe work with them.

## Contribute

All contributions are welcome! Feel free to implement new quantities or define relations using `impl_macros.rs`. 🚀