in src/touch/shapes.ts [60:65]
public static contains(rect: Rectangle, p: Point): boolean {
if (p && !Rectangle.isEmpty(rect)) {
return rect.x <= p.x && p.x < rect.x + rect.width && rect.y <= p.y && p.y < rect.y + rect.height;
}
return false;
}