code: @Pure
  	public double[] toDoubleArray(Transform3D transform) {
  		double[] clone = new double[this.numCoords];
  		if (transform==null) {
  			for(int i=0; i<this.numCoords; ++i) {
  				clone[i] = this.coords[i];
  			}
  		}
  		else {
  			Point3f p = new Point3f();
  			for(int i=0; i<clone.length;) {
  				p.x = this.coords[i];
  				p.y = this.coords[i+1];
  				p.y = this.coords[i+2];
  				transform.transform(p);
  				clone[i++] = p.x;
  				clone[i++] = p.y;
  				clone[i++] = p.z;
  			}
  		}
  		return clone;
  	}
docs: Replies the coordinates of this path in an array of
  double precision floating-point numbers.
  
  @param transform is the transformation to apply to all the coordinates.
  @return the coordinates.