Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void IntersectBoundingBoxWithRay() { var boundingBox = new BoundingBox(Vector3D.One * -0.5f, Vector3D.One * 0.5f); var ray = new Ray(Vector3D.UnitY * 2.0f, -Vector3D.UnitY); Assert.AreEqual(new Vector3D(0.0f, 0.5f, 0.0f), boundingBox.Intersect(ray)); }
See Also