Пример #1
0
 public double Difference(CubeDimension cubeAxis) =>
 Math.Max(0, Math.Min(end, cubeAxis.end) - Math.Max(start, cubeAxis.start));
Пример #2
0
 public bool Collides(CubeDimension cubeAxis) =>
 Difference(cubeAxis) >= 0;