Package turtle

Class Point

java.lang.Object
turtle.Point

public class Point
extends Object
An immutable point in floating-point pixel space.

PS0 instructions: do NOT change this class.

  • Constructor Summary

    Constructors 
    Constructor Description
    Point​(double x, double y)
    Construct a point at the given coordinates.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object that)  
    int hashCode()  
    String toString()  
    double x()  
    double y()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Point

      public Point​(double x, double y)
      Construct a point at the given coordinates.
      Parameters:
      x - x-coordinate
      y - y-coordinate
  • Method Details