Skip to main content

box_area

Function box_area 

Source
pub fn box_area<B>(b: &B) -> <ShoelaceBoxArea as AreaStrategy<B>>::Out
Expand description

Area of an axis-aligned Box: (xmax - xmin) * (ymax - ymin).

Mirrors boost::geometry::area(box) from boost/geometry/algorithms/area.hpp resolved through the dispatch::area<Box, box_tag> arm at algorithms/area.hpp:149-151. Always non-negative — the Cartesian box formula is sign-blind to corner ordering (test/algorithms/area/area.cpp:56-57).