Package org.robwork.sdurw_math
Class EuclideanMetricVector2D
- java.lang.Object
-
- org.robwork.sdurw_math.MetricVector2D
-
- org.robwork.sdurw_math.EuclideanMetricVector2D
-
public class EuclideanMetricVector2D extends MetricVector2D
Euclidean distance metric for vector types.
The distance between two points
P = (p_1, p_2, ..., p_n)
and
Q = (q_1, q_2, ..., q_n)
is defined as
\sqrt{\sum_{i=1}^{n}(p_i - q_i)^2}
-
-
Constructor Summary
Constructors Constructor Description EuclideanMetricVector2D()
EuclideanMetricVector2D(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(EuclideanMetricVector2D obj)
-
Methods inherited from class org.robwork.sdurw_math.MetricVector2D
distance, distance, getCPtr, size
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(EuclideanMetricVector2D obj)
-
delete
public void delete()
- Overrides:
delete
in classMetricVector2D
-
-