use-hypersphere 0.0.6

Higher-dimensional sphere primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented1 out of 6 items with examples
  • Size
  • Source code size: 4.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 331.49 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s 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-hypersphere

Higher-dimensional sphere primitives for the RustUse geometry workspace.

use-hypersphere keeps n-sphere vocabulary lightweight: dimension metadata, radius storage, and simple constructors. Ordinary three-dimensional sphere measurements live in use-sphere.

Example

use use_hypersphere::{Hypersphere, ThreeSphere};

let sphere = Hypersphere::<3>::new(2.0).expect("valid hypersphere");
let three_sphere = ThreeSphere::new(2.0).expect("valid 3-sphere");

assert_eq!(sphere.dimension(), 3);
assert_eq!(three_sphere.dimension(), 3);