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); }