Returns the length of each side of the rectangle (top, right, bottom, left)
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";const rect = { width: 100, height: 100, x: 100, y: 100 };// Yields: array of length fourconst lengths = Rects.lengths(rect); Copy
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";const rect = { width: 100, height: 100, x: 100, y: 100 };// Yields: array of length fourconst lengths = Rects.lengths(rect);
Returns the length of each side of the rectangle (top, right, bottom, left)