Function: boxFromRect()
boxFromRect(
__namedParameters):TransformBox
Defined in: src/lib/transform/geometry/index.ts:57
The box that exactly covers a rectangle, unrotated.
Parameters
__namedParameters
Returns
Example
boxFromRect({ x: 0, y: 0, width: 10, height: 20 }); // { cx: 5, cy: 10, width: 10, height: 20, rotation: 0 }