S2ClosestPointQueryBase.Target

The Target class represents the geometry to which the distance is measured. For example, there can be subtypes for measuring the distance to a point, an edge, or to an S2ShapeIndex (an arbitrary collection of geometry).

Implementations do *not* need to be thread-safe. They may cache data or allocate temporary data structures in order to improve performance.

class S2ClosestPointQueryBase(Distance, Data)
alias Target = S2DistanceTarget!Distance

Meta