using LeoTurtle; namespace PinwheelTiling; public static class PinwheelTilingPath { private const double Alpha = 26.57D; private const double Beta = 90D - Alpha; private const double Gamma = 90D; /// /// Executes the logic for adding turtle path steps. /// Called automatically when application starts. /// /// The instance to use public static void Walk(SmartTurtle turtle) { var initialTriangle = new Triangle(new Point(2.5D, 10.0D), new Point(82.5D, 50.0D), new Point(82.5D, 10.0D)); // TODO - call your drawing/subdivision method } // TODO - implement your algorithm /// /// Converts an angel from degrees to radians. /// /// Degrees to convert /// Radians value private static double ConvertToRadians(double angleDegrees) { return angleDegrees * Math.PI / 180D; } /// /// Calculates the distance between two points. /// /// First point /// Second point /// Distance between the two points private static double DistanceBetweenPoints(Point a, Point b) { return Math.Sqrt(Math.Pow(b.X - a.X, 2D) + Math.Pow(b.Y - a.Y, 2D)); } }