use-coordinate 0.0.6

Coordinate primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    43 out of 43 items documented1 out of 23 items with examples
  • Size
  • Source code size: 10.58 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 589.12 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-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));