org.jcamp.math.IOrderedArray2D Maven / Gradle / Ivy
package org.jcamp.math;
import javax.vecmath.Point2d;
/**
* real interval with monotone ordered discrete points.
* allows assignment of a single discrete point/index to a position within the interval.
*
* @author Thomas Weber
*/
public interface IOrderedArray2D
extends IArray2D {
/**
* @return int[]
* @param x double
* @param y double
*/
public int indexAt(double x, double y);
/**
* get index of point.
* @return int[]
* @param p Point2d
*/
public int indexAt(Point2d p);
}