Exemplo n.º 1
0
 public void AabbTest()
 {
     OrthographicViewVolume viewVolume = new OrthographicViewVolume();
       viewVolume.Set(-1, 1, -1, 1, 2, 5);
       Aabb aabb = viewVolume.GetAabb(Pose.Identity);
       Assert.AreEqual(new Vector3F(-1, -1, -5), aabb.Minimum);
       Assert.AreEqual(new Vector3F(1, 1, -2), aabb.Maximum);
 }
        public void AabbTest()
        {
            OrthographicViewVolume viewVolume = new OrthographicViewVolume();

            viewVolume.Set(-1, 1, -1, 1, 2, 5);
            Aabb aabb = viewVolume.GetAabb(Pose.Identity);

            Assert.AreEqual(new Vector3(-1, -1, -5), aabb.Minimum);
            Assert.AreEqual(new Vector3(1, 1, -2), aabb.Maximum);
        }
        public void SetException3()
        {
            OrthographicViewVolume viewVolume = new OrthographicViewVolume();

            viewVolume.Set(1, 2, 3, 4, 6, 6);
        }
Exemplo n.º 4
0
 public void SetException3()
 {
     OrthographicViewVolume viewVolume = new OrthographicViewVolume();
       viewVolume.Set(1, 2, 3, 4, 6, 6);
 }