math.geom2d.conic
Interface EllipseShape2D
-
- All Superinterfaces:
- Boundary2D, java.lang.Cloneable, Conic2D, ContinuousCurve2D, ContinuousOrientedCurve2D, Contour2D, Curve2D, GeometricObject2D, OrientedCurve2D, Shape2D, SmoothContour2D, SmoothCurve2D, SmoothOrientedCurve2D
public interface EllipseShape2D extends SmoothContour2D, Conic2D
A common interface for Circle2D and Ellipse2D.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface math.geom2d.conic.Conic2D
Conic2D.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Point2Dcenter()Returns center of the ellipse shape.java.util.Collection<? extends EllipseShape2D>continuousCurves()Returns the collection of continuous curves which constitute this curve.booleanisCircle()Returns true if this ellipse shape is similar to a circle, i.e.booleanisDirect()If an ellipse shape is direct, it is the boundary of a convex domain.EllipseShape2Dreverse()Reverses the contour, and returns an instance of SmoothContour2D.EllipseShape2Dtransform(AffineTransform2D trans)Transforms the contour, and returns an instance of SmoothContour2D.-
Methods inherited from interface math.geom2d.domain.SmoothOrientedCurve2D
clip, subCurve
-
Methods inherited from interface math.geom2d.curve.SmoothCurve2D
normal, tangent
-
Methods inherited from interface math.geom2d.domain.Boundary2D
domain, fill, isInside
-
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D
appendPath, asPolyline, curvature, isClosed, leftTangent, rightTangent, smoothPieces
-
Methods inherited from interface math.geom2d.domain.OrientedCurve2D
signedDistance, signedDistance, windingAngle
-
Methods inherited from interface math.geom2d.curve.Curve2D
asAwtShape, clone, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, t0, t1, vertices
-
Methods inherited from interface math.geom2d.Shape2D
boundingBox, contains, contains, distance, distance, isBounded, isEmpty
-
Methods inherited from interface math.geom2d.GeometricObject2D
almostEquals
-
Methods inherited from interface math.geom2d.conic.Conic2D
clip, conicCoefficients, conicType, eccentricity
-
-
-
-
Method Detail
-
center
Point2D center()
Returns center of the ellipse shape.
-
isCircle
boolean isCircle()
Returns true if this ellipse shape is similar to a circle, i.e. has same length for both semi-axes.
-
isDirect
boolean isDirect()
If an ellipse shape is direct, it is the boundary of a convex domain. Otherwise, the complementary of the bounded domain is convex.
-
reverse
EllipseShape2D reverse()
Description copied from interface:SmoothContour2DReverses the contour, and returns an instance of SmoothContour2D.- Specified by:
reversein interfaceBoundary2D- Specified by:
reversein interfaceConic2D- Specified by:
reversein interfaceContinuousCurve2D- Specified by:
reversein interfaceContinuousOrientedCurve2D- Specified by:
reversein interfaceContour2D- Specified by:
reversein interfaceCurve2D- Specified by:
reversein interfaceOrientedCurve2D- Specified by:
reversein interfaceSmoothContour2D- Specified by:
reversein interfaceSmoothCurve2D- Specified by:
reversein interfaceSmoothOrientedCurve2D
-
continuousCurves
java.util.Collection<? extends EllipseShape2D> continuousCurves()
Description copied from interface:Curve2DReturns the collection of continuous curves which constitute this curve.- Specified by:
continuousCurvesin interfaceBoundary2D- Specified by:
continuousCurvesin interfaceCurve2D- Returns:
- a collection of continuous curves.
-
transform
EllipseShape2D transform(AffineTransform2D trans)
Description copied from interface:SmoothContour2DTransforms the contour, and returns an instance of SmoothContour2D.- Specified by:
transformin interfaceBoundary2D- Specified by:
transformin interfaceConic2D- Specified by:
transformin interfaceContinuousCurve2D- Specified by:
transformin interfaceContinuousOrientedCurve2D- Specified by:
transformin interfaceContour2D- Specified by:
transformin interfaceCurve2D- Specified by:
transformin interfaceOrientedCurve2D- Specified by:
transformin interfaceShape2D- Specified by:
transformin interfaceSmoothContour2D- Specified by:
transformin interfaceSmoothCurve2D- Specified by:
transformin interfaceSmoothOrientedCurve2D- Parameters:
trans- an affine transform- Returns:
- the transformed shape
-
-
DMelt 3.0 © DataMelt by jWork.ORG