the point-rect collision object
- Source
Methods
(static) collide(point, rect) → {boolean}
returns true if the point is in the rectangle
Parameters:
Name | Type | Description |
---|---|---|
point | Object | |
rect | Object | the rectangle |
- Source
Returns:
- Type:
- boolean