src/main/java/ch/frostnova/force/based/layout/geom/Rectangle.java
public boolean contains(Point p) {
        Check.required(p, "point");

        double dx = p.getX() - getLocation().getX();
        double dy = p.getY() - getLocation().getY();
        return dx >= 0 && dy >= 0 && dx <= getSize().getWidth() && dy <= getSize().getHeight();
    }
/**
     * Determine if the given point is inside the rectangle
     *
     * @param p point, required
     * @return inside
     */
Determine if the given point is inside the rectangle
@param p point, required
@return inside
Determine if the given point is inside the rectangle @param p point required @return inside
public boolean contains(Point p) {
        Check.required(p, "point");
        double dx = p.getX() - getLocation().getX();
        double dy = p.getY() - getLocation().getY();
        return dx >= 0 && dy >= 0 && dx <= getSize().getWidth() && dy <= getSize().getHeight();
    }
public boolean contains ( Point p ) { Check . required ( p , "point" ) ; double dx = p . getX ( ) - getLocation ( ) . getX ( ) ; double dy = p . getY ( ) - getLocation ( ) . getY ( ) ; return dx >= 0 && dy >= 0 && dx <= getSize ( ) . getWidth ( ) && dy <= getSize ( ) . getHeight ( ) ; }
Determine if the given point is inside the rectangle
 @param p point, required
 @return inside
Determine if the given point is inside the rectangle @param p point required @return inside