public void UnboundedCylinderBoundingBox() { var s = new shape.Cylinder(); var box = s.Bounds(); Assert.Equal(pt.Point(-1, double.NegativeInfinity, -1), box.Minimum); Assert.Equal(pt.Point(1, double.PositiveInfinity, 1), box.Maximum); }
public void BoundedCylinderBoundingBox() { var s = new shape.Cylinder() { Minimum = -5, Maximum = 3 }; var box = s.Bounds(); Assert.Equal(pt.Point(-1, -5, -1), box.Minimum); Assert.Equal(pt.Point(1, 3, 1), box.Maximum); }