public static void Main() { var mapStencil = new MapStencilFactory().FromImage("maps/map02.bmp"); // x goes right, then left. // double windMagnitude = 10; // double windAngle = Math.PI;// * 5 / 8; // double x0 = 150; // double y0 = 150; // double vx0 = 30; // double vy0 = -65; // PunchParabola(windAngle, windMagnitude, vx0, x0, vy0, y0, mapStencil); double windMagnitude = 11; double windAngle = Math.PI * 5 / 8; double x0 = 260; double y0 = 150; double mag = 71; for (var theta = 60; theta < 120; theta++) { double angle = theta * Math.PI / 180.0; double vx0 = mag * Math.Cos(angle); double vy0 = -mag * Math.Sin(angle); PunchParabola(windAngle, windMagnitude, vx0, x0, vy0, y0, mapStencil); } // mapStencil.PunchEllipse( // 200, 150, 200, 100, x => !x // ); Application.Run(new MapStencilDisplay(mapStencil)); }
public static void Main() { var mapStencil = new MapStencilFactory().FromImage("maps/map02.bmp"); // x goes right, then left. // double windMagnitude = 10; // double windAngle = Math.PI;// * 5 / 8; // double x0 = 150; // double y0 = 150; // double vx0 = 30; // double vy0 = -65; // PunchParabola(windAngle, windMagnitude, vx0, x0, vy0, y0, mapStencil); double windMagnitude = 11; double windAngle = Math.PI * 5 / 8; double x0 = 260; double y0 = 150; double mag = 71; for (var theta = 60; theta < 120; theta++) { double angle = theta * Math.PI / 180.0; double vx0 = mag * Math.Cos(angle); double vy0 = -mag *Math.Sin(angle); PunchParabola(windAngle, windMagnitude, vx0, x0, vy0, y0, mapStencil); } // mapStencil.PunchEllipse( // 200, 150, 200, 100, x => !x // ); Application.Run(new MapStencilDisplay(mapStencil)); }