Class Point


  • public class Point
    extends java.lang.Object
    A 2-D point class.
    2003.01.06: Make class public, use double instead of float.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double x
      A double for x position
      double y
      A double for y position
    • Constructor Summary

      Constructors 
      Constructor Description
      Point​(double x, double y)
      Constructor
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        public double x
        A double for x position
      • y

        public double y
        A double for y position
    • Constructor Detail

      • Point

        public Point​(double x,
                     double y)
        Constructor
        Parameters:
        x - double x pos
        y - double y pos