public double Difference(CubeDimension cubeAxis) => Math.Max(0, Math.Min(end, cubeAxis.end) - Math.Max(start, cubeAxis.start));
public bool Collides(CubeDimension cubeAxis) => Difference(cubeAxis) >= 0;
public double Difference(CubeDimension cubeAxis) => Math.Max(0, Math.Min(end, cubeAxis.end) - Math.Max(start, cubeAxis.start));
public bool Collides(CubeDimension cubeAxis) => Difference(cubeAxis) >= 0;