math.geom2d.conic
Interface Conic2D

Package class diagram package Conic2D
All Superinterfaces:
Boundary2D, Cloneable, Curve2D, OrientedCurve2D, Serializable, Shape2D
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
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

getConicType

Conic2D.Type getConicType()

getConicCoefficients

double[] getConicCoefficients()
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.


getEccentricity

double getEccentricity()
Returns the eccentricity of the conic.


getReverseCurve

Conic2D getReverseCurve()
Description copied from interface: Boundary2D
Forces the subclasses to return an instance of Boundary2D.

Specified by:
getReverseCurve in interface Boundary2D
Specified by:
getReverseCurve in interface Curve2D
Specified by:
getReverseCurve in interface OrientedCurve2D

transform

Conic2D transform(AffineTransform2D trans)
Description copied from interface: Boundary2D
Forces the subclasses to return an instance of Boundary2D.

Specified by:
transform in interface Boundary2D
Specified by:
transform in interface Curve2D
Specified by:
transform in interface OrientedCurve2D
Specified by:
transform in interface Shape2D
Parameters:
trans - an affine transform
Returns:
the transformed shape

clip

CurveSet2D<? extends ContinuousOrientedCurve2D> clip(Box2D box)
Description copied from interface: Curve2D
When a curve is clipped, the result is a set of curves.

Specified by:
clip in interface Curve2D
Specified by:
clip in interface OrientedCurve2D
Specified by:
clip in interface Shape2D
Parameters:
box - the clipping box
Returns:
the clipped shape


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.