// RTVector.java // This class provides a vector for the RT cloud model. It can be between // a 1 vector and a 3 vector so that the same class can be used with cloud // models of different dimensionalities. public class RTVector { public RTVector(int d) { int i; vals=new double[d]; dim=d; for(i=0; i=dim)) return(0.0); return(vals[i]); } public void Set(int i,double v) { if((i<0) || (i>=dim)) return; vals[i]=v; } public void Normalize() { int i; double mag=0; for(i=0; i