Uses of Class
com.google.common.geometry.S2ClosestPointQuery.Result
-
-
Uses of S2ClosestPointQuery.Result in com.google.common.geometry
Fields in com.google.common.geometry with type parameters of type S2ClosestPointQuery.Result Modifier and Type Field Description private java.util.PriorityQueue<S2ClosestPointQuery.Result<T>>
S2ClosestPointQuery. results
Temporary queue of results sorted in descending order.Methods in com.google.common.geometry that return S2ClosestPointQuery.Result Modifier and Type Method Description S2ClosestPointQuery.Result<T>
S2ClosestPointQuery. findClosestPoint(S2Point target)
Convenience method that returns the closest point to the given target point, or null if no points satisfy theS2ClosestPointQuery.getMaxDistance()
andS2ClosestPointQuery.getRegion()
criteria.Methods in com.google.common.geometry that return types with arguments of type S2ClosestPointQuery.Result Modifier and Type Method Description java.util.List<S2ClosestPointQuery.Result<T>>
S2ClosestPointQuery. findClosestPoints(S2Point target)
Returns the closest points totarget
that satisfy theS2ClosestPointQuery.getMaxDistance()
,S2ClosestPointQuery.getMaxPoints()
, andS2ClosestPointQuery.getRegion()
criteria, ordered by increasing distance.java.util.List<S2ClosestPointQuery.Result<T>>
S2ClosestPointQuery. findClosestPointsToEdge(S2Point a, S2Point b)
Returns the closest points to the given edge AB.private java.util.List<S2ClosestPointQuery.Result<T>>
S2ClosestPointQuery. toList(java.util.List<S2ClosestPointQuery.Result<T>> list)
Creates an empty list if 'list' is null, and then polls all results out ofS2ClosestPointQuery.results
into the given list in reverse order, and returns it.Method parameters in com.google.common.geometry with type arguments of type S2ClosestPointQuery.Result Modifier and Type Method Description void
S2ClosestPointQuery. findClosestPoints(java.util.List<S2ClosestPointQuery.Result<T>> results, S2Point target)
AsS2ClosestPointQuery.findClosestPoints(S2Point)
, but sorts the results and adds them at the end of the given list.void
S2ClosestPointQuery. findClosestPointsToEdge(java.util.List<S2ClosestPointQuery.Result<T>> results, S2Point a, S2Point b)
AsS2ClosestPointQuery.findClosestPointsToEdge(S2Point, S2Point)
, but adds results to the given list.private java.util.List<S2ClosestPointQuery.Result<T>>
S2ClosestPointQuery. toList(java.util.List<S2ClosestPointQuery.Result<T>> list)
Creates an empty list if 'list' is null, and then polls all results out ofS2ClosestPointQuery.results
into the given list in reverse order, and returns it.
-