Package com.google.common.geometry
Interface S2ClosestPointQuery.Target
- All Known Implementing Classes:
S2ClosestPointQuery.EdgeTarget
,S2ClosestPointQuery.PointTarget
- Enclosing class:
S2ClosestPointQuery<T>
private static interface S2ClosestPointQuery.Target
A kind of query target.
-
Method Summary
Modifier and TypeMethodDescriptioncenter()
Returns the approximate center of the target.getDistance
(S2Cell cell) Returns the distance between this target and the given cell.getMinDistance
(S2Point point, S1ChordAngle distance) Returns the smaller ofdistance
and a new distance from target topoint
.double
radius()
Returns the radian radius of an angular cap that encloses this target.
-
Method Details
-
center
S2Point center()Returns the approximate center of the target. -
getDistance
Returns the distance between this target and the given cell. -
radius
double radius()Returns the radian radius of an angular cap that encloses this target. -
getMinDistance
Returns the smaller ofdistance
and a new distance from target topoint
.
-