use-inversion 0.0.6

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

Geometric inversion primitives for the RustUse geometry workspace.

use-inversion stores the center and radius of an inversion circle. It intentionally does not try to implement a full circle-inversion engine in this first pass.

Example

use use_inversion::Inversion;
use use_point::Point2;

let inversion = Inversion::try_new(Point2::origin(), 2.0).expect("valid inversion");

assert_eq!(inversion.radius(), 2.0);
assert_eq!(inversion.radius_squared(), 4.0);