Package codedraw

Class Point2D

java.lang.Object
codedraw.Point2D

public class Point2D extends Object
This class represents a 2D point. It is only used in Matrix2D.multiply(Point2D) and Matrix2D.multiply(double, double).
  • Constructor Details

  • Method Details

    • getX

      public double getX()
      The x component of the point.
      Returns:
      the x component.
    • getY

      public double getY()
      The y component of the point.
      Returns:
      the y component.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object