Java Geometry Algorithm botSides( Point2D.Double botLocation)

Here you can find the source of botSides( Point2D.Double botLocation)

Description

bot Sides

License

Open Source License

Declaration

public static ArrayList<Line2D.Double> botSides(
            Point2D.Double botLocation) 

Method Source Code

//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
}

Related

  1. areDifferentAnchorPoints(Point2D p1, Point2D p2)
  2. areLocationsClose(Point2D point1, Point2D point2)
  3. assertEDT(String point)
  4. botCorners(Point2D.Double p)
  5. botRect(Point2D.Double botLocation)
  6. bound(Point... points)
  7. boundingBox(Vector points)
  8. boundsOf(Collection points)
  9. cap(java.awt.geom.Point2D.Double p1, java.awt.geom.Point2D.Double p2, double radius)