示例#1
0
 public Rectangle(CartPt nw, int width, int height, string color)
 {
     _nw     = nw;
     _width  = width;
     _height = height;
     _color  = color;
 }
示例#2
0
 public double DistTo(CartPt cart)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public bool Contains(CartPt pt)
 {
     return((_nw.X <= pt.X) && (pt.X <= _nw.X + _width) &&
            (_nw.Y <= pt.Y) && (pt.Y <= _nw.Y + _height));
 }