Package snap.geom

Class Ellipse

All Implemented Interfaces:
Cloneable

public class Ellipse extends RectBase
Class describes an ellipse that is defined by a framing rectangle.
  • Constructor Details

    • Ellipse

      public Ellipse()
      Constructor.
    • Ellipse

      public Ellipse(double aX, double aY, double aW, double aH)
      Constructor with bounds.
  • Method Details

    • contains

      public boolean contains(double aX, double aY)
      Contains.
      Overrides:
      contains in class Shape
    • getPathIter

      public PathIter getPathIter(Transform at)
      Returns an iteration object that defines the boundary of this Ellipse.
      Specified by:
      getPathIter in class Shape
    • hashCode

      public int hashCode()
      Returns the hashcode for this Ellipse.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class RectBase