Class SimplePointND

  • All Implemented Interfaces:
    PointND

    public class SimplePointND
    extends Object
    implements PointND
    One implementatoin of a point
    • Constructor Detail

      • SimplePointND

        public SimplePointND​(double... ords)
        Create a new SimplePointND using the given ordinates.
        Parameters:
        ords - the ordinates
    • Method Detail

      • getDimensions

        public int getDimensions()
        Specified by:
        getDimensions in interface PointND
        Returns:
        the number of dimensions this point has
      • getOrd

        public double getOrd​(int axis)
        Specified by:
        getOrd in interface PointND
        Parameters:
        axis - the axis to get the value for
        Returns:
        the ordinate value for the given axis