Skip to content

Function: inRotatedBox() ​

ts
function inRotatedBox(b, x, y, slop?): boolean;

Experimental

Whether a container point lies inside a rotated box (with slop px of tolerance).

Parameters ​

ParameterTypeDefault value
bRotatedBoxundefined
xnumberundefined
ynumberundefined
slopnumber0

Returns ​

boolean

Released under the MIT License.