public void Afficher(PointC3 point) { Console.WriteLine($"\nRayon : {Rayon}" + $"\nDiametre : {Rayon*2}" + $"\nPerimetre : {GetPerimetre()}" + $"\nSurface : {GetSurface()}" + $"\nPoint Externe : {point.Afficher()}" + $"\nPoint Appartient ? : {Appartient(point)}"); }
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); } }
public CercleC3(float rayon) { Rayon = rayon; Centre = new PointC3(rayon, rayon); }