UNPKG

pocket-physics

Version:

Verlet physics extracted from pocket-ces demos

11 lines (10 loc) 344 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.overlapCircleCircle = void 0; const overlapCircleCircle = (ax, ay, arad, bx, by, brad) => { const x = bx - ax; const y = by - ay; const rad = arad + brad; return x * x + y * y < rad * rad; }; exports.overlapCircleCircle = overlapCircleCircle;