Skip to content

anim-format (runtime format) / boundsOverlap

Function: boundsOverlap() ​

ts
function boundsOverlap(
   a, 
   b, 
   tol?
): boolean;

do two boxes overlap (touching within tol counts)?

Parameters ​

ParameterTypeDefault value
aMarkerBoundsundefined
bMarkerBoundsundefined
tol?number0

Returns ​

boolean

HereSplash — 2D animation for the web