Skip to content

five-on-it / apps/client/src/renderer/view-rect / inView

Function: inView() ​

inView(rect, x, z, radius?): boolean

Defined in: apps/client/src/renderer/view-rect.ts:110

Whether a point on the ground, or anything within radius of it, lies in the rectangle.

Parameters ​

rect ​

ViewRect

x ​

number

z ​

number

radius? ​

number = 0

Returns ​

boolean