@@ -0,0 +1,553 @@
+package org.psjava.geometry.calc;%0A%0Aimport java.util.Comparator;%0A%0Aimport org.psjava.geometry.data.Point2D;%0Aimport org.psjava.math.InRange;%0Aimport org.psjava.math.Max;%0Aimport org.psjava.math.Min;%0A%0Apublic class PointOnFilledRectangle %7B%0A%0A%09public static %3CT%3E boolean isOn(Point2D%3CT%3E p, T x1, T x2, T y1, T y2, Comparator%3CT%3E comp) %7B%0A%09%09T maxx = Max.max(x1, x2, comp);%0A%09%09T minx = Min.min(x1, x2, comp);%0A%09%09T maxy = Max.max(y1, y2, comp);%0A%09%09T miny = Min.min(y1, y2, comp);%0A%09%09return InRange.is(p.x(), minx, maxx, comp) && InRange.is(p.y(), miny, maxy, comp);%0A%09%7D%0A%0A%7D%0A

add a point range checker