Skip to content

1681-engine / index / boxInView

Function: boxInView() ​

ts
function boxInView(
   b, 
   view, 
   margin?
): boolean;

Defined in: src/ambient/life/lifeMotion.ts:33

Whether the box touches the view grown by margin on every side.

Parameters ​

ParameterTypeDefault value
bLifeBoxundefined
viewViewRectundefined
marginnumber0

Returns ​

boolean

Released under the MIT License.