private void CheckHeading(PotentialField potentialField, Vector2 worldPosition, Vector2 expectedHeading) { var heading = potentialField.GetHeading(worldPosition); Assert.Equal(expectedHeading.X, heading.X, 3); Assert.Equal(expectedHeading.Y, heading.Y, 3); }