Class Point2D


  • public class Point2D
    extends java.lang.Object
    Class representing a point in F^2 where F is the set of double floating point numbers.
    Author:
    Christian Fries
    • Constructor Summary

      Constructors 
      Constructor Description
      Point2D​(double x, double y)
      Create object representing a point in F^2 where F is the set of double floating point numbers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getX()
      Returns the x value of (x,y).
      double getY()
      Returns the y value of (x,y).
      • Methods inherited from class java.lang.Object

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

      • Point2D

        public Point2D​(double x,
                       double y)
        Create object representing a point in F^2 where F is the set of double floating point numbers.
        Parameters:
        x - The x value of (x,y).
        y - The y value of (x,y).
    • Method Detail

      • getX

        public double getX()
        Returns the x value of (x,y).
        Returns:
        the x value of (x,y).
      • getY

        public double getY()
        Returns the y value of (x,y).
        Returns:
        the y value of (x,y).