public override int RequiredGridSize() { if (_fst.RequiredGridSize() == 0 || _snd.RequiredGridSize() == 0) { return(0); } return(Math.Max(_fst.RequiredGridSize(), _snd.RequiredGridSize())); }
public override int RequiredGridSize() { return(Math.Min(_fst.RequiredGridSize(), _snd.RequiredGridSize())); }
public override int RequiredGridSize() { var maxoffset = Math.Max(Math.Max(_tranform.X, _tranform.Y), _tranform.Z); return((int)Math.Ceiling(_original.RequiredGridSize() + 2 * maxoffset)); }
public override int RequiredGridSize() { return((int)Math.Ceiling(_original.RequiredGridSize() * scale)); }
public override int RequiredGridSize() { return(_fst.RequiredGridSize()); }
// Assumes the worst case instead of calculating the actual grid. // This is the distance between two opposite corners. public override int RequiredGridSize() { return((int)Math.Ceiling(Math.Sqrt((_original.RequiredGridSize() * _original.RequiredGridSize()) * 3))); }