collision. pointRect

the point-rect collision object

Methods

(static) collide(point, rect) → {boolean}

returns true if the point is in the rectangle

Parameters:
NameTypeDescription
pointObject
rectObject

the rectangle

Returns:
Type: 
boolean