Returns the perimeter of rect (ie. sum of all edges)
rect
Copy
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js"; const rect = { width: 100, height: 100, x: 100, y: 100 }; Rects.perimeter(rect);
Returns the perimeter of
rect
(ie. sum of all edges)import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js"; const rect = { width: 100, height: 100, x: 100, y: 100 }; Rects.perimeter(rect);