use-hull 0.0.6

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

Hull primitives for the RustUse geometry workspace.

use-hull provides descriptors for convex-hull inputs and algorithms. It does not yet implement hull construction.

Example

use use_hull::{ConvexHull2, HullAlgorithm};
use use_point::Point2;

let hull = ConvexHull2::new(vec![Point2::origin(), Point2::new(1.0, 0.0)]);

assert_eq!(hull.point_count(), 2);
assert_eq!(HullAlgorithm::MonotoneChain.name(), "monotone-chain");