Skip to content

inSquare

inSquare(point, center, apothem): boolean

Test whether a point is inside a square rect

Parameters

point: number[]

center: number[]

center point of square

apothem: number

apothem of square

Returns

boolean

Source

graphics/geometry.ts:99