コード例 #1
0
        public override Vector Repousser(Vector position, double dist)
        {
            RepereSpherique rep = new RepereSpherique(GetCoordLocale(position));

            rep.r += dist;
            return(Orientation.Delocaliser(rep.GetCartesien()));
        }
コード例 #2
0
 public Base(RepereSpherique sphere)
 {
     this.u1       = sphere.GetUphy();
     this.u2       = sphere.GetUteta();
     this.u3       = sphere.GetUr();
     this.position = sphere.GetCartesien();
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        public override Vector Normale(Tuple <double, double> coord2D)
        {
            RepereSpherique rep = new RepereSpherique(rayon, coord2D.Item1, coord2D.Item2);

            return(Orientation.Delocaliser(rep.GetUr()) - Orientation.position);
        }
コード例 #5
0
        public override Tuple <double, double> getCoordonees2D(Vector position)
        {
            RepereSpherique rep = new RepereSpherique(GetCoordLocale(position));

            return(new Tuple <double, double>(rep.teta, rep.phy));
        }