Package il.ac.idc.jdt

Class Circle

    • Constructor Detail

      • Circle

        public Circle​(Point c,
                      double r)
        Constructor.
        Constructs a new Circle
        Parameters:
        c - Center of the circle.
        r - Radius of the circle.
      • Circle

        public Circle​(Circle circ)
        Copy Constructor.
        Creates a new Circle with same properties of circ.
        Parameters:
        circ - Circle to clone.
    • Method Detail

      • center

        public Point center()
        Gets the center of the circle.
        Returns:
        the center of the circle.
      • radius

        public double radius()
        Gets the radius of the circle.
        Returns:
        the radius of the circle.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object