Expand description
§use-coordinate
Coordinate primitives for the RustUse geometry workspace.
use-coordinate provides small axis and coordinate value types for geometry crates that need a
lightweight coordinate vocabulary without a larger algebra layer.
§Example
use use_coordinate::{Axis2, Coordinate2};
let point = Coordinate2::new(2.0, 3.0);
assert_eq!(point.component(Axis2::X), 2.0);
assert_eq!(point.as_tuple(), (2.0, 3.0));Structs§
- Coordinate2
- A raw two-dimensional coordinate pair.
- Coordinate3
- A raw three-dimensional coordinate triple.
Enums§
- Axis2
- Axis labels for two-dimensional coordinates.
- Axis3
- Axis labels for three-dimensional coordinates.
- Geometry
Error - Errors returned by validated geometry constructors and tolerance-aware helpers.