Ejemplo n.º 1
0
 public void Afficher(PointC3 point)
 {
     Console.WriteLine($"\nRayon              : {Rayon}" +
                       $"\nDiametre           : {Rayon*2}" +
                       $"\nPerimetre          : {GetPerimetre()}" +
                       $"\nSurface            : {GetSurface()}" +
                       $"\nPoint Externe      : {point.Afficher()}" +
                       $"\nPoint Appartient ? : {Appartient(point)}");
 }
Ejemplo n.º 2
0
 public bool Appartient(PointC3 point)
 {
     if ((float)Math.Sqrt(Math.Pow(point.X - Centre.X, 2) + Math.Pow(point.Y - Centre.Y, 2)) <= Rayon)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
 public CercleC3(float rayon)
 {
     Rayon  = rayon;
     Centre = new PointC3(rayon, rayon);
 }