mirror of https://github.com/apache/lucene.git
LUCENE-7157: More javadoc fixes
This commit is contained in:
parent
94f8e10813
commit
9bef6c000b
|
@ -236,6 +236,14 @@ public class GeoPolygonFactory {
|
||||||
return arcDistance > 0.0;
|
return arcDistance > 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Compute the angle for a point given rotation information.
|
||||||
|
* @param point is the point to assess
|
||||||
|
* @param sinLatitude the sine of the latitude
|
||||||
|
* @param cosLatitude the cosine of the latitude
|
||||||
|
* @param sinLongitude the sine of the longitude
|
||||||
|
* @param cosLongitude the cosine of the longitude
|
||||||
|
* @return the angle of rotation, or null if not computable
|
||||||
|
*/
|
||||||
protected static Double computeAngle(final GeoPoint point,
|
protected static Double computeAngle(final GeoPoint point,
|
||||||
final double sinLatitude,
|
final double sinLatitude,
|
||||||
final double cosLatitude,
|
final double cosLatitude,
|
||||||
|
@ -638,6 +646,13 @@ public class GeoPolygonFactory {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Check if a point is within a set of edges.
|
||||||
|
* @param point is the point
|
||||||
|
* @param edgeSet is the set of edges
|
||||||
|
* @param extension is the new edge
|
||||||
|
* @param returnBoundary is the return edge
|
||||||
|
* @return true if within
|
||||||
|
*/
|
||||||
protected static boolean isWithin(final GeoPoint point, final Set<Edge> edgeSet, final Edge extension, final SidedPlane returnBoundary) {
|
protected static boolean isWithin(final GeoPoint point, final Set<Edge> edgeSet, final Edge extension, final SidedPlane returnBoundary) {
|
||||||
if (!extension.plane.isWithin(point)) {
|
if (!extension.plane.isWithin(point)) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -648,6 +663,11 @@ public class GeoPolygonFactory {
|
||||||
return isWithin(point, edgeSet);
|
return isWithin(point, edgeSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Check if a point is within a set of edges.
|
||||||
|
* @param point is the point
|
||||||
|
* @param edgeSet is the set of edges
|
||||||
|
* @return true if within
|
||||||
|
*/
|
||||||
protected static boolean isWithin(final GeoPoint point, final Set<Edge> edgeSet) {
|
protected static boolean isWithin(final GeoPoint point, final Set<Edge> edgeSet) {
|
||||||
for (final Edge edge : edgeSet) {
|
for (final Edge edge : edgeSet) {
|
||||||
if (!edge.plane.isWithin(point)) {
|
if (!edge.plane.isWithin(point)) {
|
||||||
|
|
Loading…
Reference in New Issue