math.geom2d.conic
Interface Conic2D
-
- All Superinterfaces:
- Boundary2D, java.lang.Cloneable, Curve2D, GeometricObject2D, OrientedCurve2D, Shape2D
- All Known Subinterfaces:
- EllipseShape2D
- All Known Implementing Classes:
- Circle2D, Ellipse2D, Hyperbola2D, Parabola2D
public interface Conic2D extends Boundary2D
Interface for all conic curves: parametric conics, or ellipses, parabolas, and hyperbolas. Degenerate conics are also encompassed by this interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classConic2D.TypeThe different types of conic.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description CurveSet2D<? extends ContinuousOrientedCurve2D>clip(Box2D box)When a curve is clipped, the result is a set of curves.double[]conicCoefficients()Returns the coefficient of the Cartesian representation of the conic.Conic2D.TypeconicType()doubleeccentricity()Returns the eccentricity of the conic.Conic2Dreverse()Forces the subclasses to return an instance of Boundary2D.Conic2Dtransform(AffineTransform2D trans)Forces the subclasses to return an instance of Boundary2D.-
Methods inherited from interface math.geom2d.domain.Boundary2D
continuousCurves, domain, fill, isInside
-
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, subCurve, 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
-
-
-
-
Method Detail
-
conicType
Conic2D.Type conicType()
-
conicCoefficients
double[] conicCoefficients()
Returns the coefficient of the Cartesian representation of the conic. Cartesian equation has the form :a*x^2 + b*x*y + c*y^2 + d*x + e*y + f
The length of the array is then of size 6.
-
eccentricity
double eccentricity()
Returns the eccentricity of the conic.
-
reverse
Conic2D reverse()
Description copied from interface:Boundary2DForces the subclasses to return an instance of Boundary2D.- Specified by:
reversein interfaceBoundary2D- Specified by:
reversein interfaceCurve2D- Specified by:
reversein interfaceOrientedCurve2D
-
transform
Conic2D transform(AffineTransform2D trans)
Description copied from interface:Boundary2DForces the subclasses to return an instance of Boundary2D.- Specified by:
transformin interfaceBoundary2D- Specified by:
transformin interfaceCurve2D- Specified by:
transformin interfaceOrientedCurve2D- Specified by:
transformin interfaceShape2D- Parameters:
trans- an affine transform- Returns:
- the transformed shape
-
clip
CurveSet2D<? extends ContinuousOrientedCurve2D> clip(Box2D box)
Description copied from interface:Curve2DWhen a curve is clipped, the result is a set of curves.
-
-
DMelt 3.0 © DataMelt by jWork.ORG