|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface Conic2D
Interface for all conic curves: parametric conics, or ellipses, parabolas, and hyperbolas. Degenerate conics are also encompassed by this interface.
| Nested Class Summary | |
|---|---|
static class |
Conic2D.Type
The different types of conic. |
| Field Summary |
|---|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY |
| Method Summary | |
|---|---|
CurveSet2D<? extends ContinuousOrientedCurve2D> |
clip(Box2D box)
When a curve is clipped, the result is a set of curves. |
double[] |
getConicCoefficients()
Returns the coefficient of the Cartesian representation of the conic. |
Conic2D.Type |
getConicType()
|
double |
getEccentricity()
Returns the eccentricity of the conic. |
Conic2D |
getReverseCurve()
Forces the subclasses to return an instance of Boundary2D. |
Conic2D |
transform(AffineTransform2D trans)
Forces the subclasses to return an instance of Boundary2D. |
| Methods inherited from interface math.geom2d.domain.Boundary2D |
|---|
fill, getBoundaryCurves, getDomain, isInside |
| Methods inherited from interface math.geom2d.domain.OrientedCurve2D |
|---|
getSignedDistance, getSignedDistance, getWindingAngle |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
clone, draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getSubCurve, getT0, getT1, isSingular, project |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
| Method Detail |
|---|
Conic2D.Type getConicType()
double[] getConicCoefficients()
a*x^2 + b*x*y + c*y^2 + d*x + e*y + f
The length of the array is then of size 6.
double getEccentricity()
Conic2D getReverseCurve()
Boundary2D
getReverseCurve in interface Boundary2DgetReverseCurve in interface Curve2DgetReverseCurve in interface OrientedCurve2DConic2D transform(AffineTransform2D trans)
Boundary2D
transform in interface Boundary2Dtransform in interface Curve2Dtransform in interface OrientedCurve2Dtransform in interface Shape2Dtrans - an affine transform
CurveSet2D<? extends ContinuousOrientedCurve2D> clip(Box2D box)
Curve2D
clip in interface Curve2Dclip in interface OrientedCurve2Dclip in interface Shape2Dbox - the clipping box
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||