Here you can find the source of botRect(Point2D.Double botLocation)
public static Rectangle2D.Double botRect(Point2D.Double botLocation)
//package com.java2s; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; public class Main { public static Rectangle2D.Double botRect(Point2D.Double botLocation) { Rectangle2D.Double botRect = new Rectangle2D.Double( botLocation.x - 18, botLocation.y - 18, 36, 36); return botRect; }/* ww w .ja v a2s .c om*/ }