/** * File : Point.java * Desc : The coordinates of a single pebble * Hist * 2004-02-22 : @author Douglas Reay */ public class Point { public static final int X = 0; public static final int Y = 1; public static final int Z = 2; private double mycoords[]; private int size; /** Constructor */ public Point( double[] newcoords ) { mycoords = newcoords; size = mycoords.length; } public double get(int dimension) { return mycoords[dimension]; } public void set(int dimension, double value) { mycoords[dimension] = value; } public int getSize() { return size; } } // End of File