Class DefaultLineStripMergePolicy
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.contour.DefaultLineStripMergePolicy
-
- All Implemented Interfaces:
ILineStripMergePolicy
public class DefaultLineStripMergePolicy extends Object implements ILineStripMergePolicy
Tells if we should merge with any LineStrip according to a maximum distance threshold- Author:
- Martin Pernollet
-
-
Field Summary
Fields Modifier and Type Field Description protected double
threshold
-
Constructor Summary
Constructors Constructor Description DefaultLineStripMergePolicy()
DefaultLineStripMergePolicy(double threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
mergeable(LineStrip ls1, LineStrip ls2)
double
mergeScore(LineStrip ls1, LineStrip ls2)
protected double
minDist(LineStrip strip1, LineStrip strip2)
LineStrip
mostMergeableIfAny(LineStrip ls, List<LineStrip> lines)
-
-
-
Method Detail
-
mostMergeableIfAny
public LineStrip mostMergeableIfAny(LineStrip ls, List<LineStrip> lines)
- Specified by:
mostMergeableIfAny
in interfaceILineStripMergePolicy
-
mergeable
public boolean mergeable(LineStrip ls1, LineStrip ls2)
- Specified by:
mergeable
in interfaceILineStripMergePolicy
-
mergeScore
public double mergeScore(LineStrip ls1, LineStrip ls2)
- Specified by:
mergeScore
in interfaceILineStripMergePolicy
-
-