use-statics
Small statics helpers for RustUse.
Install
[]
= "0.0.1"
Foundation
use-statics provides small helpers for force balance, moment balance, equilibrium checks,
static friction, inclined planes, and simple support reactions.
Inputs are expected to be SI-style numeric values:
- newtons for force and load
- meters for span, position, and moment arm
- newton-meters for moment
- kilograms for mass
- radians for incline angle
- newtons per meter for distributed load
The crate stays narrow on purpose. It is not a structural analysis engine, finite element solver, truss solver, frame solver, rigid-body physics engine, or simulation framework.
Vector operations should live in or compose with use-vector. Torque-specific helpers belong in
use-torque. Rigid-body mechanics belong in use-rigidbody. Simulation belongs in top-level
use-simulation.
Example
use ;
let Some = new else ;
let Some = simply_supported_point_load_reactions else ;
let Some = cantilever_end_point_load_reaction else ;
assert_eq!;
assert_eq!;
assert_eq!;
When to use directly
Choose use-statics when you want small, direct helpers for introductory or utility-level statics
work without pulling in a broader mechanics surface.
Scope
- APIs stay dependency-free and
f64-first. - Helpers focus on scalar formulas and simple 2D force and moment balances.
- Arbitrary beam loading, truss analysis, frame analysis, FEA, CAD, and design-code compliance are out of scope.
- Broad vector algebra belongs in
use-vectoror companion math crates.
Status
use-statics is a pre-1.0 crate with a deliberately small API.