Package org.apache.lucene.spatial3d.geom
Interface GeoPath
- All Superinterfaces:
Bounded,GeoArea,GeoAreaShape,GeoBounds,GeoDistance,GeoDistanceShape,GeoMembershipShape,GeoOutsideDistance,GeoShape,Membership,PlanetObject,SerializableObject
Interface describing a path.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoublecomputeNearestDistance(DistanceStyle distanceStyle, double x, double y, double z) Compute the nearest path distance to the GeoPoint.default doublecomputeNearestDistance(DistanceStyle distanceStyle, GeoPoint point) Compute the nearest path distance to the GeoPoint.doublecomputePathCenterDistance(DistanceStyle distanceStyle, double x, double y, double z) Compute the shortest distance from the path center to the GeoPoint.default doublecomputePathCenterDistance(DistanceStyle distanceStyle, GeoPoint point) Compute the shortest distance from the path center to the GeoPoint.Methods inherited from interface org.apache.lucene.spatial3d.geom.GeoArea
getRelationshipMethods inherited from interface org.apache.lucene.spatial3d.geom.GeoAreaShape
intersectsMethods inherited from interface org.apache.lucene.spatial3d.geom.GeoDistance
computeDeltaDistance, computeDeltaDistance, computeDistance, computeDistanceMethods inherited from interface org.apache.lucene.spatial3d.geom.GeoDistanceShape
getDistanceBoundsMethods inherited from interface org.apache.lucene.spatial3d.geom.GeoOutsideDistance
computeOutsideDistance, computeOutsideDistanceMethods inherited from interface org.apache.lucene.spatial3d.geom.GeoShape
getEdgePoints, intersectsMethods inherited from interface org.apache.lucene.spatial3d.geom.Membership
isWithin, isWithinMethods inherited from interface org.apache.lucene.spatial3d.geom.PlanetObject
getPlanetModelMethods inherited from interface org.apache.lucene.spatial3d.geom.SerializableObject
write
-
Method Details
-
computeNearestDistance
Compute the nearest path distance to the GeoPoint. The path distance will not include the distance from the path itself to the point, but just the distance along the path to the nearest point on the path.- Parameters:
distanceStyle- is the distance style.point- is the point to compute the distance to.- Returns:
- the distance to the nearest path point.
-
computeNearestDistance
Compute the nearest path distance to the GeoPoint. The path distance will not include the distance from the path itself to the point, but just the distance along the path to the nearest point on the path.- Parameters:
x- is the point's unit x coordinate (using U.S. convention).y- is the point's unit y coordinate (using U.S. convention).z- is the point's unit z coordinate (using U.S. convention).- Returns:
- the distance to the nearest path point.
-
computePathCenterDistance
Compute the shortest distance from the path center to the GeoPoint. The distance is meant to allow comparisons between different paths to find the one that goes closest to a point.- Parameters:
distanceStyle- is the distance style.point- is the point to compute the distance to.- Returns:
- the shortest distance from the path center to the point.
-
computePathCenterDistance
Compute the shortest distance from the path center to the GeoPoint. The distance is meant to allow comparisons between different paths to find the one that goes closest to a point.- Parameters:
distanceStyle- is the distance style.x- is the point's unit x coordinate (using U.S. convention).y- is the point's unit y coordinate (using U.S. convention).z- is the point's unit z coordinate (using U.S. convention).- Returns:
- the shortest distance from the path center to the point.
-