Class Point2D


  • public class Point2D
    extends Object
    Class representing a point in F^2 where F is the set of double floating point numbers.
    Author:
    Christian Fries
    • 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).