Package com.google.common.geometry
Interface S2ClosestPointQuery.Target
-
- All Known Implementing Classes:
S2ClosestPointQuery.EdgeTarget,S2ClosestPointQuery.PointTarget
- Enclosing class:
- S2ClosestPointQuery<T>
private static interface S2ClosestPointQuery.TargetA kind of query target.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description S2Pointcenter()Returns the approximate center of the target.S1ChordAnglegetDistance(S2Cell cell)Returns the distance between this target and the given cell.S1ChordAnglegetMinDistance(S2Point point, S1ChordAngle distance)Returns the smaller ofdistanceand a new distance from target topoint.doubleradius()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 ofdistanceand a new distance from target topoint.
-
-