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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description S2Point
center()
Returns the approximate center of the target.S1ChordAngle
getDistance(S2Cell cell)
Returns the distance between this target and the given cell.S1ChordAngle
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 Detail
-
center
S2Point center()
Returns the approximate center of the target.
-
getDistance
S1ChordAngle getDistance(S2Cell cell)
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
S1ChordAngle getMinDistance(S2Point point, S1ChordAngle distance)
Returns the smaller ofdistance
and a new distance from target topoint
.
-
-