Package | Description |
---|---|
org.apache.lucene.spatial.geometry.shape |
Modifier and Type | Field and Description |
---|---|
Point2D |
LineSegment.A |
Point2D |
LineSegment.B |
Modifier and Type | Method and Description |
---|---|
Point2D |
Ellipse.centroid() |
Point2D |
Geometry2D.centroid()
Return the centroid
|
Point2D |
Rectangle.centroid() |
Point2D |
Rectangle.getMaxPoint() |
Point2D |
Rectangle.getMinPoint() |
Modifier and Type | Method and Description |
---|---|
void |
Point2D.add(Point2D a) |
boolean |
Ellipse.contains(Point2D pt) |
boolean |
Geometry2D.contains(Point2D p)
Does the shape contain the given point
|
boolean |
Rectangle.contains(Point2D p) |
double |
LineSegment.distance(Point2D P,
Point2D closestPt)
Finds the distance of a specified point from the line segment and the
closest point on the segment to the specified point.
|
int |
Ellipse.intersect(LineSegment seg,
Point2D pt0,
Point2D pt1)
Determines if a line segment intersects the ellipse and if so finds the
point(s) of intersection.
|
void |
Point2D.set(Point2D p1) |
Constructor and Description |
---|
Ellipse(Point2D p1,
Point2D p2,
double angle)
Constructor given bounding rectangle and a rotation.
|
LineSegment(Point2D p1,
Point2D p2) |
Point2D(Point2D other) |
Rectangle(Point2D ptMin,
Point2D ptMax) |
Vector2D(Point2D p)
Create a vector from the origin of the coordinate system to the given
point
|
Vector2D(Point2D from,
Point2D to)
Create a vector from one point to another
|
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.