Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #3
0
 public void IntersectsAABBf_IsFalse(PlaneF plane, AABBf aabb)
 {
     Assert.False(plane.Intersects(aabb));
 }