docs.rs failed to build geosets-rs-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
geosets-rs
A Rust library for continuous set arithmetic.
Features
The following set representations are supported
- H-Polytopes (Half-space representation)
- V-Polytopes (Vertex representation)
- Zonotopes
- Intervals
Installation
Add this to your Cargo.toml
:
System Dependencies
This library depends on several system libraries that need to be installed:
Ubuntu/Debian
macOS
Usage
use ;
let set = from_random.unwrap;
// Convert to vertices
let _vertices = set.to_vertices.unwrap;
// Calculate volume
let volume = set.volume.unwrap;
println!;
// Translate the set
let translation = ones;
let translated = set.translate.unwrap;
// Plot
let mut plot = translated.plot.unwrap;
// Plot with original
let original_trace = set
.create_trace
.unwrap;
plot.add_trace;
// Uncomment to show
// plot.show();
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.