Package snap.geom
Class Ellipse
java.lang.Object
snap.geom.Shape
snap.geom.RectBase
snap.geom.Ellipse
- All Implemented Interfaces:
Cloneable
Class describes an ellipse that is defined by a framing rectangle.
-
Field Summary
Fields inherited from class snap.geom.Shape
_bounds, WIND_EVEN_ODD, WIND_NON_ZERO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double aX, double aY) Contains.boolean
Standard equals implementation.getPathIter
(Transform at) Returns an iteration object that defines the boundary of this Ellipse.int
hashCode()
Returns the hashcode for thisEllipse
.Methods inherited from class snap.geom.RectBase
clone, copyFor, copyFor, equals, getBoundsImpl, getHeight, getMaxX, getMaxY, getMidX, getMidY, getMinX, getMinY, getSize, getSvgString, getWidth, getX, getXY, getY, inset, inset, inset, isEmpty, offset, setCenteredXY, setHeight, setRect, setRect, setSize, setWidth, setX, setXY, setY, toString
Methods inherited from class snap.geom.Shape
addShapes, contains, contains, contains, containsSeg, copyForBounds, crossesSeg, getArcLength, getBounds, getCrossings, getDistance, getFlattenedShape, getFlattenedShape, getNotSelfIntersectingShape, intersectShapes, intersectsSeg, intersectsShape, intersectsShape, intersectsXY, isClosed, isFlat, isMultiCycle, isSelfIntersecting, isSingleCycle, shapeChanged, subtractShapes
-
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. -
getPathIter
Returns an iteration object that defines the boundary of this Ellipse.- Specified by:
getPathIter
in classShape
-
hashCode
public int hashCode()Returns the hashcode for thisEllipse
. -
equals
Standard equals implementation.
-