use-torus 0.0.6

Torus primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented1 out of 7 items with examples
  • Size
  • Source code size: 4.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 308.15 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-geometry
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-torus

Torus primitives for the RustUse geometry workspace.

use-torus stores major and minor radii and exposes direct measurement helpers. It does not cover knot theory or topology-heavy behavior.

Example

use use_torus::Torus;

let torus = Torus::new(3.0, 1.0).expect("valid torus");

assert_eq!(torus.major_radius(), 3.0);
assert_eq!(torus.minor_radius(), 1.0);