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 doublethreshold
-
Constructor Summary
Constructors Constructor Description DefaultLineStripMergePolicy()DefaultLineStripMergePolicy(double threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmergeable(LineStrip ls1, LineStrip ls2)doublemergeScore(LineStrip ls1, LineStrip ls2)protected doubleminDist(LineStrip strip1, LineStrip strip2)LineStripmostMergeableIfAny(LineStrip ls, List<LineStrip> lines)
-
-
-
Method Detail
-
mostMergeableIfAny
public LineStrip mostMergeableIfAny(LineStrip ls, List<LineStrip> lines)
- Specified by:
mostMergeableIfAnyin interfaceILineStripMergePolicy
-
mergeable
public boolean mergeable(LineStrip ls1, LineStrip ls2)
- Specified by:
mergeablein interfaceILineStripMergePolicy
-
mergeScore
public double mergeScore(LineStrip ls1, LineStrip ls2)
- Specified by:
mergeScorein interfaceILineStripMergePolicy
-
-