containsPoint method
Tests whether this rectangle entirely contains coordinate.
@param {goog.math.Coordinate} point The coordinate to test for containment. @return {boolean} Whether this rectangle contains given coordinate.
Implementation
bool containsPoint(Coordinate point)
{
return point.x >= this.left && point.x <= this.left + this.width &&
point.y >= this.top && point.y <= this.top + this.height;
}