public void StaticDirectionDiff() { CubicHexCoord cubic = CubicHexCoord.DirectionDiff(DirectionEnum.E); Assert.That(cubic.x, Is.EqualTo(1)); Assert.That(cubic.y, Is.EqualTo(-1)); Assert.That(cubic.z, Is.EqualTo(0)); }
public void Scale() { CubicHexCoord cubic = CubicHexCoord.DirectionDiff(DirectionEnum.SE); CubicHexCoord scaled = cubic.Scale(3); Assert.That(scaled.x, Is.EqualTo(3 * cubic.x)); Assert.That(scaled.y, Is.EqualTo(3 * cubic.y)); Assert.That(scaled.z, Is.EqualTo(3 * cubic.z)); }