// Path: src/net/sourceforge/arbaro/params/FloatFormat.java
// public class FloatFormat {
// 
//     public static NumberFormat getInstance() {
// 	NumberFormat form = NumberFormat.getNumberInstance(Locale.US);
// 	form.setMaximumFractionDigits(5);
// 	form.setMinimumFractionDigits(0);
// 	return form;
//     }
// }


import java.lang.String;
import java.lang.Math;
import java.text.NumberFormat;
import net.sourceforge.arbaro.params.FloatFormat;


	public Vector(Vector v) {
		coord = new double[Z+1];
		coord[X] = v.coord[X];
		coord[Y] = v.coord[Y];
		coord[Z] = v.coord[Z];
	}

	public Vector(double value) {
		coord = new double[Z+1];
		coord[X] = coord[Y] = coord[Z] = value;
	}

	public Vector(double x, double y, double z) {
		coord = new double[Z+1];
		coord[X] = x;
		coord[Y] = y;
		coord[Z] = z;
	}

	public boolean equals(Vector v) {
		return this.sub(v).abs() < 0.0000001;
	}

	public double abs() {
		//returns the length of the vector
		return Math.sqrt(coord[X]*coord[X] + coord[Y]*coord[Y] + coord[Z]*coord[Z]);
	}

	public String toString() {

// Path: src/net/sourceforge/arbaro/params/FloatFormat.java
// public class FloatFormat {
// 
//     public static NumberFormat getInstance() {
// 	NumberFormat form = NumberFormat.getNumberInstance(Locale.US);
// 	form.setMaximumFractionDigits(5);
// 	form.setMinimumFractionDigits(0);
// 	return form;
//     }
// }


// Path: src/net/sourceforge/arbaro/transformation/Vector.java
import java.lang.String;
import java.lang.Math;
import java.text.NumberFormat;
import net.sourceforge.arbaro.params.FloatFormat;


	public Vector(Vector v) {
		coord = new double[Z+1];
		coord[X] = v.coord[X];
		coord[Y] = v.coord[Y];
		coord[Z] = v.coord[Z];
	}

	public Vector(double value) {
		coord = new double[Z+1];
		coord[X] = coord[Y] = coord[Z] = value;
	}

	public Vector(double x, double y, double z) {
		coord = new double[Z+1];
		coord[X] = x;
		coord[Y] = y;
		coord[Z] = z;
	}

	public boolean equals(Vector v) {
		return this.sub(v).abs() < 0.0000001;
	}

	public double abs() {
		//returns the length of the vector
		return Math.sqrt(coord[X]*coord[X] + coord[Y]*coord[Y] + coord[Z]*coord[Z]);
	}

	public String toString() {

		NumberFormat fmt = FloatFormat.getInstance();
