Function side_lengths

Source
pub fn side_lengths(rectangle: &Rectangle2) -> [Scalar; 2]
Expand description

Side lengths of an oriented rectangle, shortest edge first.

A free function rather than an inherent method because Rectangle2 lives in axiolid-core, which holds data and no algorithms. Ordering is fixed so the result does not depend on which hull edge the caliper happened to stop on.