Interface ClosestPointToModel<T extends GeoTuple>

All Known Implementing Classes:
PointModel

public interface ClosestPointToModel<T extends GeoTuple>
An interface where the closest point to a model is looked up.
  • Method Summary

    Modifier and Type
    Method
    Description
    Searches the model for the closest point to 'target' and if one exists it is returned.
  • Method Details

    • findClosestPoint

      @Nullable T findClosestPoint(T target)
      Searches the model for the closest point to 'target' and if one exists it is returned.
      Parameters:
      target - The point where the closest point on the model is being searched for
      Returns:
      Closest model point, if any has been found. null otherwise. The returned point should not be modified or saved since if the model is updated its value can change.