public void ConvertToInfinity(XYZ_d result) { result.Rem(realSize); if (result.x < 0) { result.x = realSize.x + result.x; } if (result.y < 0) { result.y = realSize.y + result.y; } if (result.z < 0) { result.z = realSize.z + result.z; } }