Exemple #1
0
        public void TestDistance()
        {
            var v1 = new CubeCoordinates(1, -2, 1);
            var v2 = new CubeCoordinates(2, -2, 0);

            Assert.AreEqual(1, v1.Distance(v2));
        }
Exemple #2
0
 public void TestHexDistance()
 {
     Assert.AreEqual(7, CubeCoordinates.Distance(new CubeCoordinates(3, -7, 4), new CubeCoordinates(0, 0, 0)), "hex_distance");
 }