void AddCollisionPoint(double x, double y, double sideLength) { CollisionPoint tempcp = new CollisionPoint(); tempcp.Load(x, y, sideLength); cplist.Add(tempcp); }
public void Load(double startx, double starty, double length, double rotation, int thickness) { p1.X = startx; p1.Y = starty; this.rot = rotation; this.length = length; this.thickness = thickness; SetEndPoint(); // loading cps cp1.Load(p1.X, p1.Y); cp2.Load(p2.X, p2.Y); cpList.Add(cp1); cpList.Add(cp2); }