use-hyperplane 0.0.6

Hyperplane 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: 6.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 315.79 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-hyperplane

Hyperplane primitives for the RustUse geometry workspace.

use-hyperplane keeps n-dimensional hyperplanes small: a coefficient vector and an offset.

Example

use use_hyperplane::Hyperplane;

let hyperplane = Hyperplane::try_new(vec![1.0, 0.0, 0.0], -2.0)?;

assert_eq!(hyperplane.dimension(), 3);
assert_eq!(hyperplane.evaluate(&[2.0, 4.0, 5.0]), Some(0.0));
# Ok::<(), use_coordinate::GeometryError>(())