public static Int3 Min(Int3 a, Int3 b) { return(new Int3(Mathf.Min(a.x, b.x), Mathf.Min(a.y, b.y), Mathf.Min(a.z, b.z))); }
public Int3 Clamp(Int3 min, Int3 max) { return(new Int3(Mathf.Clamp(x, min.x, max.x), Mathf.Clamp(y, min.y, max.y), Mathf.Clamp(z, min.z, max.z))); }
public bool ContainsTrunk(Int3 coord) { return(coord >= Int3.Zero && coord < worldDimension); }
private void RemoveVertIndexAtCoord(Int3 coord) { cellToVertIndexLookup.Remove(GetVertIndexBufferKey(coord)); }
private void SetVertIndexAtCoord(Int3 coord, int value) { cellToVertIndexLookup[GetVertIndexBufferKey(coord)] = value; }
private Vector3 GetCellOriginPos(Int3 coord) { return(Vector3.Scale(data.cellSize, coord.ToVector3())); }