|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.geom2d.curve.CurveSet2D<T>
math.geom2d.curve.BoundarySet2D<HyperbolaBranch2D>
math.geom2d.conic.Hyperbola2D
public class Hyperbola2D
Superclass for all linear and pieces smooth curves : polylines, conics, lines ...
| Field Summary |
|---|
| Fields inherited from class math.geom2d.curve.CurveSet2D |
|---|
curves |
| Fields inherited from interface math.geom2d.conic.Conic2D |
|---|
CIRCLE, ELLIPSE, HYPERBOLA, NOT_A_CONIC, PARABOLA, POINT, STRAIGHT_LINE, TWO_LINES |
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY, defaultClipWindow, EMPTY_SET |
| Constructor Summary | |
|---|---|
Hyperbola2D()
Assume centered hyperbola, with a = b = 1 (orthogonal hyperbola), theta=0 (hyperbola is oriented East-West), and direct orientation. |
|
Hyperbola2D(double xc,
double yc,
double a,
double b,
double theta,
boolean d)
Main constructor |
|
Hyperbola2D(Point2D center,
double a,
double b,
double theta,
boolean d)
|
|
| Method Summary | |
|---|---|
boolean |
contains(double x,
double y)
return true if one of the curves contains the point |
boolean |
contains(java.awt.geom.Point2D point)
return true if one of the curves contains the point |
boolean |
equals(java.lang.Object obj)
Tests whether this hyperbola equals another object. |
double |
getAngle()
|
double[] |
getCartesianEquation()
Return the coefficient of the cartesian representation of the conic. |
Point2D |
getCenter()
|
int |
getConicType()
|
double |
getEccentricity()
Return eccentricity of the conic. |
Point2D |
getFocus1()
|
Point2D |
getFocus2()
|
java.util.Collection<Point2D> |
getIntersections(StraightObject2D line)
Returns the intersection points of the curve with the specified line. |
double |
getLength1()
Return 0 |
double |
getLength2()
Return 0 |
Hyperbola2D |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
Vector2D |
getVector1()
|
Vector2D |
getVector2()
|
boolean |
isDirect()
|
Point2D |
toGlobal(Point2D point)
transform a point in local coordinate (ie orthogonal centered hyberbola with a=b=1) to global coordinate system. |
Point2D |
toLocal(Point2D point)
|
Hyperbola2D |
transform(AffineTransform2D trans)
Transform each curve, and build a new CurveSet2D with the set of transformed curves. |
| Methods inherited from class math.geom2d.curve.BoundarySet2D |
|---|
clip, getBoundaryCurves, getSignedDistance, getSignedDistance, getSubCurve, getWindingAngle, isInside |
| Methods inherited from class math.geom2d.curve.CurveSet2D |
|---|
addCurve, clearCurves, contains, contains, fromUnitSegment, getBoundingBox, getBounds, getBounds2D, getContinuousCurves, getCurveNumber, getCurves, getDistance, getDistance, getFirstCurve, getFirstPoint, getGeneralPath, getLastCurve, getLastPoint, getPathIterator, getPathIterator, getPoint, getPoint, getPosition, getT0, getT1, intersects, intersects, isBounded, isEmpty, iterator, project, removeCurve, toUnitSegment |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface math.geom2d.conic.Conic2D |
|---|
clip |
| Methods inherited from interface math.geom2d.curve.OrientedCurve2D |
|---|
getSignedDistance, getSignedDistance, getWindingAngle, isInside |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
getContinuousCurves, getFirstPoint, getLastPoint, getPoint, getPoint, getPosition, getSubCurve, getT0, getT1, project |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
getBoundingBox, getDistance, getDistance, isBounded |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Constructor Detail |
|---|
public Hyperbola2D()
public Hyperbola2D(Point2D center,
double a,
double b,
double theta,
boolean d)
public Hyperbola2D(double xc,
double yc,
double a,
double b,
double theta,
boolean d)
| Method Detail |
|---|
public Point2D toGlobal(Point2D point)
public Point2D toLocal(Point2D point)
public double getAngle()
public double[] getCartesianEquation()
Conic2Da*x^2 + b*x*y + c*y^2 + d*x + e*y + f
The length of the array is then of size 6.
getCartesianEquation in interface Conic2Dpublic Point2D getCenter()
public int getConicType()
getConicType in interface Conic2Dpublic double getEccentricity()
Conic2D
getEccentricity in interface Conic2Dpublic Point2D getFocus1()
public Point2D getFocus2()
public double getLength1()
public double getLength2()
public Vector2D getVector1()
public Vector2D getVector2()
public boolean isDirect()
public boolean contains(java.awt.geom.Point2D point)
CurveSet2D
contains in interface java.awt.Shapecontains in class CurveSet2D<HyperbolaBranch2D>
public boolean contains(double x,
double y)
CurveSet2D
contains in interface java.awt.Shapecontains in class CurveSet2D<HyperbolaBranch2D>public Hyperbola2D getReverseCurve()
Curve2D
getReverseCurve in interface Conic2DgetReverseCurve in interface Boundary2DgetReverseCurve in interface Curve2DgetReverseCurve in interface OrientedCurve2DgetReverseCurve in class BoundarySet2D<HyperbolaBranch2D>public java.util.Collection<Point2D> getIntersections(StraightObject2D line)
Curve2D
getIntersections in interface Curve2DgetIntersections in class CurveSet2D<HyperbolaBranch2D>public Hyperbola2D transform(AffineTransform2D trans)
CurveSet2D
transform in interface Conic2Dtransform in interface Boundary2Dtransform in interface Curve2Dtransform in interface OrientedCurve2Dtransform in interface Shape2Dtransform in class BoundarySet2D<HyperbolaBranch2D>trans - an affine transform
public boolean equals(java.lang.Object obj)
equals in class CurveSet2D<HyperbolaBranch2D>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||