Package org.robwork.sdurw_math
Class MetricRotation3D_f
- java.lang.Object
-
- org.robwork.sdurw_math.MetricRotation3D_f
-
- Direct Known Subclasses:
Rotation3DAngleMetric_f
public class MetricRotation3D_f extends java.lang.Object
Template interface for metrics on type T.
A metric is a function that defines a scalar distance between elements.
-
-
Constructor Summary
Constructors Constructor Description MetricRotation3D_f(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
float
distance(Rotation3Df q)
The distance from the zero element to qfloat
distance(Rotation3Df a, Rotation3Df b)
The distance from element a to b.static long
getCPtr(MetricRotation3D_f obj)
int
size()
The dimension of elements on which this metric operates.
The returns -1 if the elements don't have a measure of dimension or
if the metric works for elements of all dimensions.
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(MetricRotation3D_f obj)
-
delete
public void delete()
-
distance
public float distance(Rotation3Df q)
The distance from the zero element to q
-
distance
public float distance(Rotation3Df a, Rotation3Df b)
The distance from element a to b.- Parameters:
a
- [in] first elementb
- [in] second element- Returns:
- the distance
-
size
public int size()
The dimension of elements on which this metric operates.
The returns -1 if the elements don't have a measure of dimension or
if the metric works for elements of all dimensions.
-
-