public abstract class AbstractEllipse extends Shape
WARNING: this API is experimental and will likely change in the near future.
Modifier and Type | Field and Description |
---|---|
protected double |
centerX |
protected double |
centerY |
Modifier | Constructor and Description |
---|---|
protected |
AbstractEllipse(double centerX,
double centerY) |
Modifier and Type | Method and Description |
---|---|
protected static double |
getA(double sin,
double cos,
double radiusA2,
double radiusB2)
Compute the A constant for an ellipse.
|
protected static double |
getB(double sin,
double cos,
double radiusA2,
double radiusB2)
Compute the B constant for an ellipse.
|
protected static double |
getC(double sin,
double cos,
double radiusA2,
double radiusB2)
Compute the C constant for an ellipse.
|
Point |
getCenter()
Get the center point for this circle.
|
double |
getCenterX()
Get the X coordinate for the center point.
|
double |
getCenterY()
Get the Y coordinate for the center point.
|
double |
getHeight()
Get the height of this shape's bounding box.
|
double |
getMaxRadius()
Get the minimum radius for this ellipse.
|
double |
getMinRadius()
Get the maximum radius for this ellipse.
|
Point |
getPoint(double angle)
Get a point on this ellipse at
angle . |
double |
getPointX(double angle)
Get the X coordinate for a point on this ellipse at
angle . |
double |
getPointY(double angle)
Get the Y coordinate for a point on this ellipse at
angle . |
protected abstract double |
getRadiusA()
Get the first radius for the ellipse.
|
protected abstract double |
getRadiusB()
Get the second for the ellipse.
|
protected double |
getRotationAngle()
Get the rotation angle for this ellipse (in radians).
|
protected double |
getRotationCos()
Get the cosine of the rotation angle.
|
protected double |
getRotationSin()
Get the sine of the rotation angle.
|
double |
getWidth()
Get the width of this shape's bounding box.
|
abstract boolean |
intersects(Rectangle box,
AbstractEllipse other)
Check for intersection with
other . |
boolean |
intersects(Rectangle box,
AbstractPolygon poly)
Check if this ellipse intersects with
poly . |
boolean |
intersects(Rectangle box,
Shape other)
Check if this shape intersects with
other . |
void |
setCenter(Point value) |
void |
setCenterX(double value) |
void |
setCenterY(double value) |
addArguments, clone, compareTo, contains, contains, fastIntersects, getBoundingBox, getTypeName, hashCode, intersects, readExternal, readExternal, toString, toString, toString, valueOf, writeExternal, writeExternal
public double getWidth()
public double getHeight()
public final Point getCenter()
public final void setCenter(Point value)
public final double getCenterX()
public final void setCenterX(double value)
public final double getCenterY()
public final void setCenterY(double value)
protected double getRotationAngle()
protected abstract double getRadiusA()
This is the radius along the X plane.
protected abstract double getRadiusB()
This is the radius along the Y plane.
public double getMaxRadius()
public double getMinRadius()
protected double getRotationSin()
protected double getRotationCos()
public Point getPoint(double angle)
angle
.public double getPointX(double angle)
angle
.public double getPointY(double angle)
angle
.public boolean intersects(Rectangle box, Shape other)
other
.intersects
in class Shape
box
- The bounding box of this shape from Shape.getBoundingBox()
.other
- The shape to check for intersection withpublic abstract boolean intersects(Rectangle box, AbstractEllipse other)
other
.public boolean intersects(Rectangle box, AbstractPolygon poly)
poly
.protected static double getA(double sin, double cos, double radiusA2, double radiusB2)
protected static double getB(double sin, double cos, double radiusA2, double radiusB2)
protected static double getC(double sin, double cos, double radiusA2, double radiusB2)
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.