mcut
@mcut/compositor

hitTestOBB

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / compositor/src / hitTestOBB

Function: hitTestOBB()

function hitTestOBB(
   obb,
   x,
   y): boolean;

Defined in: packages/compositor/src/geometry.ts:131

Is the canvas-space point inside the (rotated) box?

Parameters

obb

OBB

x

number

y

number

Returns

boolean

On this page