Package org.robwork.sdurw_geometry
Class LineMetric
- java.lang.Object
-
- org.robwork.sdurw_geometry.MetricLine
-
- org.robwork.sdurw_geometry.LineMetric
-
public class LineMetric extends MetricLine
A metric for calculating line-to-line distance.
-
-
Constructor Summary
Constructors Constructor Description LineMetric()
Construct new metric.LineMetric(double angToDistWeight)
Construct new metric.LineMetric(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(LineMetric obj)
-
Methods inherited from class org.robwork.sdurw_geometry.MetricLine
distance, distance, getCPtr, size
-
-
-
-
Constructor Detail
-
LineMetric
public LineMetric(long cPtr, boolean cMemoryOwn)
-
LineMetric
public LineMetric(double angToDistWeight)
Construct new metric.- Parameters:
angToDistWeight
- [in] (optional) weighting of the angle to distance. Default is 1.
-
LineMetric
public LineMetric()
Construct new metric.
-
-
Method Detail
-
getCPtr
public static long getCPtr(LineMetric obj)
-
delete
public void delete()
- Overrides:
delete
in classMetricLine
-
-