- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.d.AbstractShape2d<IT>
-
- org.arakhne.afc.math.geometry.d2.d.AbstractRectangularShape2d<Ellipse2d>
-
- org.arakhne.afc.math.geometry.d2.d.Ellipse2d
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Ellipse2afp<Shape2d<?>,Ellipse2d,PathElement2d,Point2d,Vector2d,Rectangle2d>
,RectangularShape2afp<Shape2d<?>,Ellipse2d,PathElement2d,Point2d,Vector2d,Rectangle2d>
,Shape2afp<Shape2d<?>,Ellipse2d,PathElement2d,Point2d,Vector2d,Rectangle2d>
,Shape2d<Ellipse2d>
,Shape2D<Shape2d<?>,Ellipse2d,PathIterator2afp<PathElement2d>,Point2d,Vector2d,Rectangle2d>
,JsonableObject
public class Ellipse2d extends AbstractRectangularShape2d<Ellipse2d> implements Ellipse2afp<Shape2d<?>,Ellipse2d,PathElement2d,Point2d,Vector2d,Rectangle2d>
An ellipse with 2 double precision floating-point numbers.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND, Hamza JAFFALI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d2.afp.Ellipse2afp
Ellipse2afp.AbstractEllipsePathIterator<T extends PathElement2afp>, Ellipse2afp.EllipsePathIterator<T extends PathElement2afp>, Ellipse2afp.PrivateAPI, Ellipse2afp.TransformedEllipsePathIterator<T extends PathElement2afp>
-
-
Constructor Summary
Constructors Constructor Description Ellipse2d()
Construct an empty ellipse.Ellipse2d(double x, double y, double width, double height)
Construct an ellipse with the given minimum corner and sizes of its bouding box.Ellipse2d(Ellipse2afp<?,?,?,?,?,?> ellipse)
Constructor by copy.Ellipse2d(Point2D<?,?> min, Point2D<?,?> max)
Construct an ellipse with the given corners of its bouding box.
-
Method Summary
-
Methods inherited from class org.arakhne.afc.math.geometry.d2.d.AbstractRectangularShape2d
getMaxX, getMaxY, getMinX, getMinY, hashCode, setFromCorners, setMaxX, setMaxY, setMinX, setMinY
-
Methods inherited from class org.arakhne.afc.math.geometry.d2.d.AbstractShape2d
addShapeGeometryChangeListener, clone, equals, fireGeometryChange, getGeomFactory, removeShapeGeometryChangeListener, toJson, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.Ellipse2afp
contains, contains, equalsToShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getFlatteningPathIterator, getHorizontalRadius, getMaxFocusPoint, getMinFocusPoint, getPathIterator, getVerticalRadius, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.RectangularShape2afp
clear, getCenter, getCenterX, getCenterY, getHeight, getMaxX, getMaxY, getMinX, getMinY, getWidth, inflate, isEmpty, set, set, set, setFromCenter, setFromCenter, setFromCorners, setFromCorners, setHeight, setMaxX, setMaxY, setMinX, setMinY, setWidth, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.Shape2afp
contains, contains, createTransformedShape, getClosestPointTo, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getGeomFactory, intersects, intersects, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.Shape2D
clone, equalsToPathIterator, getDistance, getDistance, getPathIterator, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo
-
-
-
-
Constructor Detail
-
Ellipse2d
public Ellipse2d()
Construct an empty ellipse.
-
Ellipse2d
public Ellipse2d(Point2D<?,?> min, Point2D<?,?> max)
Construct an ellipse with the given corners of its bouding box.- Parameters:
min
- is the min corner of the ellipse.max
- is the max corner of the ellipse.
-
Ellipse2d
public Ellipse2d(double x, double y, double width, double height)
Construct an ellipse with the given minimum corner and sizes of its bouding box.- Parameters:
x
- x coordinate of the minium corner of the ellipse's bounding box.y
- y coordinate of the minium corner of the ellipse's bounding box.width
- width of the ellipse's bounding box.height
- height of the ellipse's bounding box.
-
Ellipse2d
public Ellipse2d(Ellipse2afp<?,?,?,?,?,?> ellipse)
Constructor by copy.- Parameters:
ellipse
- the ellipse to copy.
-
-