// This program creates some points in 2D space.
// Barry Cornelius, 29 May 2000
import java.awt.Point;
public class SimplePoints
{
   public static void main(final String[] pArgs)
   {
      // here is sensible way of setting up a rectangle of points
      Point tPointSW = new Point(100,100);
      Point tPointNW = new Point(100,500);
      Point tPointNE = new Point(400,500);
      Point tPointSE = new Point(400,100);
      // here is another way of setting tPointNW to represent 100,500
      tPointNW = new Point(tPointSW.x, tPointSW.y + 400);
      // now a complicated way of setting tPointNE equal to 400,500
      tPointNE = new Point(tPointNW);
      tPointNE.translate(300,0);
      // and an even sillier way of setting tPointSE equal to 400,100
      tPointSE = new Point(0,0);
      tPointSE.move(400,100);
      System.out.println("SW point is at: " + tPointSW);
      System.out.println("NW point is at: " + tPointNW);
      System.out.println("NE point is at: " + tPointNE);
      System.out.println("SE point is at: " + tPointSE);
   }
}
