Namespace: DeltaEngine.GameLogic.PathFinding.Tests
Assembly: DeltaEngine.GameLogic.PathFinding.Tests (in DeltaEngine.GameLogic.PathFinding.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.GameLogic.PathFinding.Tests (in DeltaEngine.GameLogic.PathFinding.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void CheckClosestNodeIndexGivenPosition() { Assert.AreEqual(0, grid3X2.GetClosestNode(new Vector2D(0.2f, 0.3f))); Assert.AreEqual(1, grid3X2.GetClosestNode(new Vector2D(0.6f, 0.0f))); Assert.AreEqual(3, grid3X2.GetClosestNode(new Vector2D(0.0f, 1.4f))); }
See Also