public void FromRotatorTest() { Angle a = new Angle(1, 270, 0, 0); Tester = GridDirectionExtentions.GetDirectionFromRotation(0, 0, 0); Tester.Should().Be(GridDirection.East); Tester = GridDirectionExtentions.GetDirectionFromRotation(45, 45, 90); Tester.Should().Be(GridDirection.NorthLower); //GridDirection.Offsets[(int) Tester.FromRotator(0, 0, 270)].X.Should().BeApproximately(0, IntegerPrec); //GridDirection.Offsets[(int) Tester.FromRotator(0, 0, 270)].Y.Should().BeApproximately(1, IntegerPrec); //GridDirection.Offsets[(int)Tester.FromRotator(0, 0, 270)].Z.Should().BeApproximately(0, IntegerPrec); }