use-incidence 0.0.6

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

Incidence geometry primitives for the RustUse geometry workspace.

use-incidence stores point-line incidence pairs and compact incidence matrices. It intentionally avoids advanced finite-geometry algorithms.

Example

use use_incidence::{IncidencePair, IncidenceStructure};

let structure = IncidenceStructure::new(2, 1, vec![IncidencePair::new(0, 0)]).unwrap();

assert_eq!(structure.point_count(), 2);
assert_eq!(structure.incidence_count(), 1);