Class Point


  • public class Point
    extends Object
    A two-dimensional coordinate on the canvas.
    • Constructor Detail

      • Point

        public Point()
    • Method Detail

      • distanceTo

        public int distanceTo​(Point other)
        Gets the distance between this point and another.
        Parameters:
        other - other point
        Returns:
        the distance