Class MetricTransform3D


  • public class MetricTransform3D
    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
      MetricTransform3D​(long cPtr, boolean cMemoryOwn)  
    • Constructor Detail

      • MetricTransform3D

        public MetricTransform3D​(long cPtr,
                                 boolean cMemoryOwn)
    • Method Detail

      • delete

        public void delete()
      • distance

        public double distance​(Transform3Dd q)
        The distance from the zero element to q
      • distance

        public double distance​(Transform3Dd a,
                               Transform3Dd b)
        The distance from element a to b.

        Parameters:
        a - [in] first element
        b - [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.