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 Type
    Method
    Description
    Returns the approximate center of the target.
    Returns the distance between this target and the given cell.
    Returns the smaller of distance and a new distance from target to point.
    double
    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

      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 of distance and a new distance from target to point.