private static bool IsWithin(Point2D p, Rectangle2D e) { return ((((p.X >= e.Left) && (p.Y >= e.Bottom)) && (p.X <= e.Right)) && (p.Y <= e.Top)); } }