Class DistanceRecord

java.lang.Object
cz.fidentis.analyst.engines.distance.measurement.DistanceRecord

public class DistanceRecord extends Object
This objects stores data about the distance from a single facet's vertex to another surface.
  • Constructor Details

    • DistanceRecord

      public DistanceRecord(MeshPoint facetPoint, double distance, MeshPoint nearestNeighbor)
      Constructor.
      Parameters:
      facetPoint - facet's source point, must not be null
      distance - measured distance, can be infinite ot NaN
      nearestNeighbor - the closest point from another surface (can be null)
  • Method Details

    • getFacetPoint

      public MeshPoint getFacetPoint()
    • getDistance

      public double getDistance()
    • getNearestNeighbor

      public MeshPoint getNearestNeighbor()
    • getWeight

      public double getWeight()
    • setWeight

      public void setWeight(double weight)
      Sets new weight
      Parameters:
      weight - new weight value, must be bigger than or equal to zero