Subtracts width/height of b
from a
(ie: a - b), returning result.
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";
const rectA = { width: 100, height: 100 };
const rectB = { width: 200, height: 200 };
// Yields: { width: -100, height: -100 }
Rects.subtract(rectA, rectB);
Subtracts a width/height from a
, returning result.
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js";
const rect = { width: 100, height: 100 };
Rects.subtract(rect, 200, 200);
// Yields: { width: -100, height: -100 }
Subtracts width/height from
a
.Param: a
Param: b
Param: c
Returns