public class Ellipse extends AbstractEllipse
WARNING: this API is experimental and will likely change in the near future.
centerX, centerY| Constructor and Description |
|---|
Ellipse() |
Ellipse(double centerX,
double centerY,
double radiusA,
double radiusB,
double rotationAngle)
Construct an ellipse.
|
Ellipse(Point center,
double radiusA,
double radiusB)
Construct an ellipse.
|
Ellipse(Point center,
double radiusA,
double radiusB,
double rotationAngle)
Construct an ellipse.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArguments(StringBuilder buffer) |
Ellipse |
clone() |
boolean |
contains(double x,
double y)
Return true if this shape contains the point defined by (
x, y). |
boolean |
equals(Object other) |
boolean |
fastIntersects(Rectangle other)
Check if this shape's bounding box intersects with
box. |
Rectangle |
getBoundingBox()
Get the rectangle that represents the bounding box that fully contains this shape.
|
double |
getRadiusA()
Get the first radius for the ellipse.
|
double |
getRadiusB()
Get the second for the ellipse.
|
double |
getRotationAngle()
Get the rotation angle for this ellipse (in radians).
|
String |
getTypeName() |
int |
hashCode() |
boolean |
intersects(Rectangle box,
AbstractEllipse other)
Check for intersection with
other. |
boolean |
intersects(Rectangle box,
Shape shape)
Check if this shape intersects with
other. |
Ellipse |
readExternal(DataInput in) |
void |
setRadiusA(double value) |
void |
setRadiusB(double value) |
void |
setRotationAngle(double value) |
void |
writeExternal(DataOutput out) |
getA, getB, getC, getCenter, getCenterX, getCenterY, getHeight, getMaxRadius, getMinRadius, getPoint, getPointX, getPointY, getRotationCos, getRotationSin, getWidth, intersects, setCenter, setCenterX, setCenterYcompareTo, contains, intersects, readExternal, toString, toString, toString, valueOf, writeExternalpublic Ellipse()
public Ellipse(Point center, double radiusA, double radiusB)
center - center point of ellipse.radiusA - the radius on the semimajor axisradiusB - the radius on the semiminor axispublic Ellipse(Point center, double radiusA, double radiusB, double rotationAngle)
center - center point of ellipse.radiusA - the radius on the semimajor axisradiusB - the radius on the semiminor axisrotationAngle - the rotation angle of the ellipse around the center point (in radians)public Ellipse(double centerX,
double centerY,
double radiusA,
double radiusB,
double rotationAngle)
centerX - x coordinate for center of ellipse.centerY - y coordinate for center of ellipse.radiusA - the radius on the semimajor axisradiusB - the radius on the semiminor axisrotationAngle - the rotation angle of the ellipse around the center point (in radians)public String getTypeName()
getTypeName in class Shapepublic double getRotationAngle()
getRotationAngle in class AbstractEllipsepublic void setRotationAngle(double value)
public double getRadiusA()
This is the radius along the X plane.
getRadiusA in class AbstractEllipsepublic void setRadiusA(double value)
public double getRadiusB()
This is the radius along the Y plane.
getRadiusB in class AbstractEllipsepublic void setRadiusB(double value)
public boolean contains(double x,
double y)
x, y).public boolean intersects(Rectangle box, Shape shape)
other.intersects in class AbstractEllipsebox - The bounding box of this shape from Shape.getBoundingBox().shape - The shape to check for intersection withpublic boolean intersects(Rectangle box, AbstractEllipse other)
other.intersects in class AbstractEllipsepublic boolean fastIntersects(Rectangle other)
box.fastIntersects in class Shapepublic Rectangle getBoundingBox()
getBoundingBox in class Shapepublic void addArguments(StringBuilder buffer)
addArguments in class Shapepublic Ellipse readExternal(DataInput in) throws IOException
readExternal in class ShapeIOExceptionpublic void writeExternal(DataOutput out) throws IOException
writeExternal in class ShapeIOExceptionCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.