public override Vector Repousser(Vector position, double dist) { RepereSpherique rep = new RepereSpherique(GetCoordLocale(position)); rep.r += dist; return(Orientation.Delocaliser(rep.GetCartesien())); }
public Base(RepereSpherique sphere) { this.u1 = sphere.GetUphy(); this.u2 = sphere.GetUteta(); this.u3 = sphere.GetUr(); this.position = sphere.GetCartesien(); }
public override Base GetBase(Tuple <double, double> coord2D) { //(0,0,0) est le centre de la sphere RepereSpherique rep = new RepereSpherique(rayon, coord2D.Item1, coord2D.Item2); Base B = rep.GetBase(); return(B); }
public override Vector Normale(Tuple <double, double> coord2D) { RepereSpherique rep = new RepereSpherique(rayon, coord2D.Item1, coord2D.Item2); return(Orientation.Delocaliser(rep.GetUr()) - Orientation.position); }
public override Tuple <double, double> getCoordonees2D(Vector position) { RepereSpherique rep = new RepereSpherique(GetCoordLocale(position)); return(new Tuple <double, double>(rep.teta, rep.phy)); }