Java Geometry Algorithm botCorners(Point2D.Double p)

Here you can find the source of botCorners(Point2D.Double p)

Description

bot Corners

License

Open Source License

Declaration

public static ArrayList<Point2D.Double> botCorners(Point2D.Double p) 

Method Source Code

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

Related

  1. area2(Point2D a, Point2D b, Point2D c)
  2. AreAlign(Point2D.Double pivot, Point2D.Double a, Point2D.Double b)
  3. areDifferentAnchorPoints(Point2D p1, Point2D p2)
  4. areLocationsClose(Point2D point1, Point2D point2)
  5. assertEDT(String point)
  6. botRect(Point2D.Double botLocation)
  7. botSides( Point2D.Double botLocation)
  8. bound(Point... points)
  9. boundingBox(Vector points)