Class PointModel<T extends GeoTuple_F64>

java.lang.Object
georegression.fitting.points.PointModel<T>
All Implemented Interfaces:
ClosestPointToModel<T>

public class PointModel<T extends GeoTuple_F64> extends Object implements ClosestPointToModel<T>
The model is a set of points in 3D space. The points are simply stored as a list of points and exhaustively searched each time the closest point needs to be found.
  • Constructor Details

    • PointModel

      public PointModel(List<T> points)
    • PointModel

      public PointModel(List<T> points, double maxDistance)
  • Method Details

    • setPoints

      public void setPoints(List<T> points)
    • findClosestPoint

      @Nullable public T findClosestPoint(T target)
      Description copied from interface: ClosestPointToModel
      Searches the model for the closest point to 'target' and if one exists it is returned.
      Specified by:
      findClosestPoint in interface ClosestPointToModel<T extends GeoTuple_F64>
      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.