public bool Set(IntVector3 v, T item) { if (Cube27.IsNeighborOf(center, v)) { this[v] = item; return(true); } return(false); }
public bool Get(IntVector3 v, out T item) { if (!Cube27.IsNeighborOf(center, v)) { item = default(T); return(false); } item = this[v]; return(true); }
public T this[IntVector3 v] { get { return(storage[Cube27.ToFlatArray3Index(center, v)]); //.SafeGet(v); } set { if (Cube27.IsNeighborOf(center, v)) { storage[Cube27.ToFlatArray3Index(center, v)] = value; } } }