use-sphere 0.0.6

Sphere 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.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 307.51 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-sphere

Ordinary sphere primitives for the RustUse geometry workspace.

use-sphere models three-dimensional Euclidean spheres. Higher-dimensional sphere vocabulary lives in use-hypersphere.

Example

use use_sphere::Sphere;

let sphere = Sphere::new(3.0).expect("valid sphere");

assert_eq!(sphere.radius(), 3.0);
assert_eq!(sphere.diameter(), 6.0);