Ejemplo n.º 1
0
        public void UnboundedConeBoundingBox()
        {
            var s   = new shape.Cone();
            var box = s.Bounds();

            Assert.Equal(pt.Point(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity), box.Minimum);
            Assert.Equal(pt.Point(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), box.Maximum);
        }
Ejemplo n.º 2
0
        public void BoundedConeBoundingBox()
        {
            var s = new shape.Cone()
            {
                Minimum = -5,
                Maximum = 3
            };

            var box = s.Bounds();

            Assert.Equal(pt.Point(-5, -5, -5), box.Minimum);
            Assert.Equal(pt.Point(5, 3, 5), box.Maximum);
        }