public void Init() { possitions[0] = new Coords(-23, 10); possitions[1] = new Coords(2, 10); r1 = new Circle(0, 0); r2 = new Circle(0, 60); p1 = new Coords(0, 0); p2 = new Coords(0, 3); trian = new Triangulation(r1, r2); lightToActivate = new DetermineLightsToActivate(200, 60, 400, trian); oc = new Occupant(); oc.UpdatePositions(100, 100); }
public Initialize(Form form) { Window = form; Window.KeyPreview = true; _nyList = new List <LightingUnit>(); _bound = new Rectangle(new Point(0, 0), new Size(GEngine.SimulationWidht, GEngine.SimulationHeigt)); _tree = new QuadTree(_bound); Triangulate = new Triangulation(Router1, Router2); ActivateLights = new DetermineLightsToActivate(150, 80, 400, Triangulate); SimulationRoom.Width = GEngine.SimulationWidht; SimulationRoom.Height = GEngine.SimulationWidht; SimulationRoom.Location = new Point((Form1.width / 2) - (GEngine.SimulationWidht / 2), (Form1.height / 2) - (GEngine.SimulationWidht / 2)); SimulationRoom.Visible = true; SimulationRoom.Show(); Window.Controls.Add(SimulationRoom); }