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, setCenterY
compareTo, contains, intersects, readExternal, toString, toString, toString, valueOf, writeExternal
public 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 Shape
public double getRotationAngle()
getRotationAngle
in class AbstractEllipse
public void setRotationAngle(double value)
public double getRadiusA()
This is the radius along the X plane.
getRadiusA
in class AbstractEllipse
public void setRadiusA(double value)
public double getRadiusB()
This is the radius along the Y plane.
getRadiusB
in class AbstractEllipse
public void setRadiusB(double value)
public boolean contains(double x, double y)
x
, y
).public boolean intersects(Rectangle box, Shape shape)
other
.intersects
in class AbstractEllipse
box
- 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 AbstractEllipse
public boolean fastIntersects(Rectangle other)
box
.fastIntersects
in class Shape
public Rectangle getBoundingBox()
getBoundingBox
in class Shape
public void addArguments(StringBuilder buffer)
addArguments
in class Shape
public Ellipse readExternal(DataInput in) throws IOException
readExternal
in class Shape
IOException
public void writeExternal(DataOutput out) throws IOException
writeExternal
in class Shape
IOException
Copyright © 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.