public void Clear() { if (openPolygons == null) { openPolygons = new List <PointChain> (16); } else { openPolygons.Clear(); } openPolygonsCount = 0; if (closedPolygons == null) { closedPolygons = new List <PointChain> (16); } else { closedPolygons.Clear(); } if (pointChainPool == null) { pointChainPool = new List <PointChain> (16); } pointChainPoolUsed = 0; tempPolygon.Clear(); }
public void Clear() { openPolygons.Clear(); openPolygonsCount = 0; closedPolygons.Clear(); pointChainPool.Clear(); pointChainPoolUsed = 0; tempPolygon.Clear(); }