All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.khelekore.prtree.SimplePointND Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
package org.khelekore.prtree;

/** One implementatoin of a point
 */
public class SimplePointND implements PointND {
    private final double[] ords;

    /** Create a new SimplePointND using the given ordinates.
     * @param ords the ordinates
     */
    public SimplePointND (double... ords) {
	this.ords = ords;
    }

    public int getDimensions () {
	return ords.length;
    }

    public double getOrd (int axis) {
	return ords[axis];
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy