use-rotation
Rotational motion, angular momentum, and moment-of-inertia helpers for RustUse.
Install
[]
= "0.0.1"
Foundation
use-rotation provides small f64-first helpers for rotational motion and rotational dynamics.
Inputs are expected to be SI-style numeric values:
- radians for angular displacement
- radians per second for angular velocity
- radians per second squared for angular acceleration
- meters for radius and length
- kilograms for mass
- kilogram square meters for moment of inertia
- kilogram square meters per second for angular momentum
- joules for rotational kinetic energy
- newton-meters for torque
The crate does not define a full unit system.
Vector operations should live in or compose with use-vector.
Torque-specific scalar helpers belong in use-torque.
Example
use ;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
let body = new.unwrap;
assert_eq!;
let state = new
.unwrap
.advanced_by_constant_acceleration
.unwrap;
assert_eq!;
assert_eq!;
When to use directly
Choose use-rotation when you need small, reusable helpers for scalar angular motion, angular momentum, rotational energy, centripetal relations, and common moments of inertia.
Scope
- APIs stay
f64-first and focus on scalar rotational helpers. - Higher-dimensional vector operations should live in or compose with
use-vector. - Broad torque-specific helper APIs belong in
use-torque. - Full rigid-body dynamics, tensors, and simulation engines are out of scope.
Status
use-rotation is a pre-1.0 crate with a deliberately small API.