Here you can find the source of botCorners(Point2D.Double p)
public static ArrayList<Point2D.Double> botCorners(Point2D.Double p)
//package com.java2s; import java.awt.geom.Point2D; import java.util.ArrayList; public class Main { protected static final double BOT_HALF_WIDTH = 18; public static ArrayList<Point2D.Double> botCorners(Point2D.Double p) { ArrayList<Point2D.Double> corners = new ArrayList<Point2D.Double>(); corners.add(new Point2D.Double(p.x - BOT_HALF_WIDTH, p.y - BOT_HALF_WIDTH));//from w ww . j a va 2s . c o m corners.add(new Point2D.Double(p.x - BOT_HALF_WIDTH, p.y + BOT_HALF_WIDTH)); corners.add(new Point2D.Double(p.x + BOT_HALF_WIDTH, p.y - BOT_HALF_WIDTH)); corners.add(new Point2D.Double(p.x + BOT_HALF_WIDTH, p.y + BOT_HALF_WIDTH)); return corners; } }