code: public CmsPoint constrain(CmsPoint point) {
  
          return new CmsPoint(constrainNum(m_left, m_width, point.getX()), constrainNum(m_top, m_height, point.getY()));
      }
docs: Constrains a point to this rectangle.<p>
  
  If any of the coordinates of the point lie in the projection of this rectangle on the corresponding axis, that coordinate
  in the result will be unchanged, otherwise it will be either the maximum or the minimum depending on on which side the original
  coordinate is located.
  
  @param point the point to constrain
  
  @return the constrained point