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.ResultModifier and TypeFieldDescriptionprivate final PriorityQueue
<S2ClosestPointQuery.Result<T>> S2ClosestPointQuery.results
Temporary queue of results sorted in descending order.Methods in com.google.common.geometry that return S2ClosestPointQuery.ResultModifier and TypeMethodDescriptionS2ClosestPointQuery.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.ResultModifier and TypeMethodDescriptionS2ClosestPointQuery.findClosestPoints
(S2Point target) Returns the closest points totarget
that satisfy theS2ClosestPointQuery.getMaxDistance()
,S2ClosestPointQuery.getMaxPoints()
, andS2ClosestPointQuery.getRegion()
criteria, ordered by increasing distance.S2ClosestPointQuery.findClosestPointsToEdge
(S2Point a, S2Point b) Returns the closest points to the given edge AB.private List
<S2ClosestPointQuery.Result<T>> S2ClosestPointQuery.toList
(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.ResultModifier and TypeMethodDescriptionvoid
S2ClosestPointQuery.findClosestPoints
(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
(List<S2ClosestPointQuery.Result<T>> results, S2Point a, S2Point b) AsS2ClosestPointQuery.findClosestPointsToEdge(S2Point, S2Point)
, but adds results to the given list.private List
<S2ClosestPointQuery.Result<T>> S2ClosestPointQuery.toList
(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.