use-hyperplane 0.0.6

Hyperplane primitives for the RustUse geometry workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# use-hyperplane

Hyperplane primitives for the RustUse geometry workspace.

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

## Example

```rust
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>(())
```