示例#1
0
 /// <summary>
 /// Clones this instance.
 /// </summary>
 /// <returns></returns>
 public Grid Clone()
 {
     Grid grid = new Grid();
     grid._gridCellSize = _gridCellSize;
     grid._gridCellSizeInv = _gridCellSizeInv;
     grid._aabb = _aabb;
     grid._nodes = (float[,]) _nodes.Clone();
     grid._points = (Vector2[]) _points.Clone();
     return grid;
 }