Here you can find the source of botSides( Point2D.Double botLocation)
public static ArrayList<Line2D.Double> botSides( Point2D.Double botLocation)
//package com.java2s; import java.awt.geom.Line2D; import java.awt.geom.Point2D; import java.util.ArrayList; public class Main { public static ArrayList<Line2D.Double> botSides( Point2D.Double botLocation) { ArrayList<Line2D.Double> botSides = new ArrayList<Line2D.Double>(); botSides.add(new Line2D.Double(botLocation.x - 18, botLocation.y - 18, botLocation.x + 18, botLocation.y - 18)); botSides.add(new Line2D.Double(botLocation.x + 18, botLocation.y - 18, botLocation.x + 18, botLocation.y + 18)); botSides.add(new Line2D.Double(botLocation.x + 18, botLocation.y + 18, botLocation.x - 18, botLocation.y + 18)); botSides.add(new Line2D.Double(botLocation.x - 18, botLocation.y + 18, botLocation.x - 18, botLocation.y - 18)); return botSides; }//from ww w . j a v a 2s . co m }