static void Main(string[] args) { RoundHole hole = new RoundHole(5); SquarePeg sp = new SquarePeg(2); SPAdapter spAdapter = new SPAdapter(sp.GetWidth(), sp); Console.WriteLine(hole.fits(spAdapter)); }
public int GetRadius() { return((int)Math.Sqrt(Math.Pow((peg.GetWidth() / 2), 2) * 2)); }