code: public static Atom scaleAdd(double s, Atom x, Atom b){
  
  		double xc = s*x.getX() + b.getX();
  		double yc = s*x.getY() + b.getY();
  		double zc = s*x.getZ() + b.getZ();
  
  		//Atom a = new AtomImpl();
  		b.setX(xc);
  		b.setY(yc);
  		b.setZ(zc);
  
  		return b;
  	}
docs: Perform linear transformation s*X+B, and store the result in b
  
  @param s
  Amount to scale x
  @param x
  Input coordinate
  @param b
  Vector to translate (will be modified)
  @return b, after modification