use-orthotope 0.0.6

Orthotope primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    13 out of 13 items documented1 out of 13 items with examples
  • Size
  • Source code size: 5.78 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 432.74 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-orthotope

Orthotope primitives for the RustUse geometry workspace.

use-orthotope provides n-dimensional orthotope descriptors plus 3D Cuboid and Cube types.

Example

use use_orthotope::{Cube, Cuboid};

let cuboid = Cuboid::new(2.0, 3.0, 4.0).expect("positive dimensions");
let cube = Cube::new(3.0).expect("positive edge");

assert_eq!(cuboid.volume(), 24.0);
assert_eq!(cube.volume(), 27.0);