static bool MyTest(Edge edge, int index, List <Edge> vector) { BitmapData delaunayLineBmp = edge.MakeDelaunayLineBmp(); bool notIntersecting = !(_keepOutMask.hitTest(zeroVector2, 1, delaunayLineBmp, zeroVector2, 1)); delaunayLineBmp.dispose(); return(notIntersecting); }
public void Dispose() { if (_delaunayLineBmp != null) { _delaunayLineBmp.dispose(); _delaunayLineBmp = null; } _leftVertex = null; _rightVertex = null; if (_clippedVertices != null) { _clippedVertices[LR.LEFT] = PointF.Empty; _clippedVertices[LR.RIGHT] = PointF.Empty; _clippedVertices = null; } _sites[LR.LEFT] = null; _sites[LR.RIGHT] = null; _sites = null; _pool.Add(this); }