Example #1
0
 public static bool Contains(Rectangled rectangle, Point2d point)
 {
     return((rectangle.Left <= point.X) && (rectangle.Right >= point.X) &&
            (rectangle.Bottom <= point.Y) && (rectangle.Top >= point.Y));
 }
Example #2
0
 /// <summary>
 /// Returns a value that indicates whether two rectangles are equal.
 /// </summary>
 /// <param name="left">The first rectangle to compare.</param>
 /// <param name="right">The second rectangle to compare.</param>
 /// <returns>true if the left and right are equal; otherwise, false.</returns>
 public static bool Equals(Rectangled left, Rectangled right)
 {
     return(left == right);
 }