code: function(rect) {
          var minX = rect.origin.x,
              maxX = minX + rect.extent.x;
          var minY = rect.origin.y,
              maxY = minY + rect.extent.y;
  
          if (rect.extent.x < 0) {
              minX = maxX;
              maxX = rect.origin.x;
          }
  
          if (rect.extent.y < 0) {
              minY = maxY;
              maxY = rect.origin.y;
          }
  
          return (
              minX <= this.x && this.x < maxX &&
              minY <= this.y && this.y < maxY
          );
      }
docs: _(Formerly `isContainedWithinRectangle`.)_
  @param rect {Rectangle} - Rectangle to test this point against.
  @returns {boolean} `true` iff this point is within given `rect`.
  @memberOf Point.prototype