public class CoordonneesHomogenes { public float [] c; public CoordonneesHomogenes() { c = new float[4]; c[0] = c[1] = c[2] = c[3] = 0; } public CoordonneesHomogenes(CoordonneesHomogenes ch) { c = new float[4]; c[0] = ch.c[0]; c[1] = ch.c[1]; c[2] = ch.c[2]; c[3] = ch.c[3]; } public CoordonneesHomogenes(Position p) { c = new float[4]; c[0] = p.c[0]; c[1] = p.c[1]; c[2] = p.c[2]; c[3] = 1.0F; } public CoordonneesHomogenes(Direction d) { c = new float[4]; c[0] = d.c[0]; c[1] = d.c[1]; c[2] = d.c[2]; c[3] = 0.0F; } public String toString() { return(c[0]+" "+c[1]+" "+c[2]+" "+c[3]); } public CoordonneesHomogenes composition(TransformationGeometrique tg) { return(tg.transformation(this)); } }