/* Auteur: Nicolas JANEY */ /* nicolas.janey@univ-fcomte.fr */ /* Octobre 2007 */ public class RayonLumineux { public Position o; public Direction d; public RayonLumineux() { o = new Position(); d = new Direction(); } public RayonLumineux(Position o,Direction d) { this.o = new Position(o); this.d = new Direction(d); } public RayonLumineux(RayonLumineux r) { o = new Position(r.o); d = new Direction(r.d); } public boolean existeIntersection(Sphere s) { return(s.existeIntersection(this)); } public Position premiereIntersection(Sphere s) { return(s.premiereIntersection(this)); } public String toString() { return("["+o+",\n"+d+"]"); } }