import pythagoras.f.Point;
import pythagoras.f.Rectangle;
import pythagoras.f.Vector;
public class GeometryExample {
public static void main(String[] args) {
Point p1 = new Point(0, 0);
Point p2 = new Point(5, 5);
Rectangle rect = new Rectangle(2, 2, 6, 4);
Vector v = new Vector(3, 4);
p1.add(v);
boolean contains = rect.contains(p2);
boolean intersects = rect.intersects(Rectangle.create(p2, 1, 1));
}
}