public RectangleD( RectangleD rect )
 {
     _UL = rect.UL;
     _LR = rect.LR;
 }
 public RectangleD( PointD ul, PointD lr )
 {
     _UL = ul;
     _LR = lr;
 }
 public RectangleD( double ul_x, double ul_y, double lr_x, double lr_y )
 {
     _UL = new PointD( ul_x, ul_y );
     _LR = new PointD( lr_x, lr_y );
 }
 public RectangleD()
 {
     _UL = new PointD( 0.0d, 0.0d );
     _LR = new PointD( 0.0d, 0.0d );
 }
 /// <summary>
 /// Checks to see if the GIS.PointD object is in inside this rectangle
 /// </summary>
 /// @param point the point to test
 /// @returns true if the point is inside this rectangle
 public bool Contains( PointD point )
 {
     if ( point > _UL && point < _LR ) // overloads in PointD.cs
     {
         return true;
     }
     else
     {
         return false;
     }
 }
示例#6
0
 public PointD( PointD P )
 {
     _X = P.X;
     _Y = P.Y;
 }