Ejemplo n.º 1
0
        public void IntersectsAABBf_IsTrue()
        {
            var aabb  = new AABBf(new float3(0, 0, -1), new float3(6, 1, 1));
            var plane = new PlaneF()
            {
                A = 1, B = 0, C = 0, D = 5
            };

            Assert.True(plane.Intersects(aabb));
        }
Ejemplo n.º 2
0
        public void IntersectsOBBf_IsFalse()
        {
            var obb = new OBBf(new float3[3] {
                new float3(0, 0, 0), new float3(4, 0, 0), new float3(2, 5, 5)
            });
            var plane = new PlaneF()
            {
                A = 1, B = 0, C = 0, D = 5
            };

            Assert.False(plane.Intersects(obb));
        }
Ejemplo n.º 3
0
 public void IntersectsAABBf_IsFalse(PlaneF plane, AABBf aabb)
 {
     Assert.False(plane.Intersects(aabb));
 }