Module org.apache.sis.feature
Package org.apache.sis.index.tree

# Interface PointTree.Locator<E>

Type Parameters:
  `E` - the type of elements stored in this tree.

Enclosing class:
  `PointTree<E>`

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PointTree.Locator<E>
Provides the coordinates of any element stored in `PointTree`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `getPositionOf(E element, double[] dest)`
  Provides the coordinates of the given element.

- ## Method Details

  - ### getPositionOf

    void getPositionOf(E element, double[] dest)
    Provides the coordinates of the given element. The coordinate shall be written in the supplied array. The array length will be `PointTree​.getDimension()` and this method shall overwrite all array values.
    Parameters:
      `element` - the element for which to get the coordinates.
      `dest` - a pre-allocated array where to store the coordinate values.