use-rectangle 0.0.6

Rectangle primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented1 out of 9 items with examples
  • Size
  • Source code size: 5.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 313.15 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-rectangle

Rectangle primitives for the RustUse geometry workspace.

use-rectangle provides axis-aligned rectangles as a planar-region layer over use-bounds.

Example

use use_point::Point2;
use use_rectangle::Rectangle;

let rectangle = Rectangle::from_corners(Point2::new(0.0, 0.0), Point2::new(4.0, 2.0));

assert_eq!(rectangle.area(), 8.0);