def test_xy_point_from_angle_negative_ok(): r, a, dx, dy = 1000, -360, 25, 14 x, y = 1025, pytest.approx(14, abs=1e-11) assert geom.xy_point_from_radius_angle(r, a, dx, dy) == (x, y)
def test_xy_point_from_radius_angle_floats_stat(r, a, dx, dy): x, y = geom.xy_point_from_radius_angle(r, a, dx, dy) assert isinstance(x, (float, int)) assert isinstance(y, (float, int))
def test_xy_point_from_angle_negative_and_zero_radius_ok(): r, a, dx, dy = 0, -1, 2, 3 x, y = 2, 3 assert geom.xy_point_from_radius_angle(r, a, dx, dy) == (x, y)
def test_xy_point_from_angle_zero_ok(): r, a, dx, dy = 1, 0, 2, 3 x, y = 3, 3 assert geom.xy_point_from_radius_angle(r, a, dx, dy) == (x, y)
def test_xy_point_from_all_zero_ok(): r, a, dx, dy = 0, 0, 0, 0 x, y = 0, 0 assert geom.xy_point_from_radius_angle(r, a, dx, dy) == (x, y)
def test_xy_point_from_radius_angle_minimal_shift_x_y_ok(): r, a, dx, dy = 1, 0, 1, 1 x, y = 2, 1 assert geom.xy_point_from_radius_angle(r, a, dx, dy) == (x, y)
def test_xy_point_from_radius_angle_minimal_ok(): r, a, dx, dy = 1, 0, 0, 0 x, y = 1, 0 assert geom.xy_point_from_radius_angle(r, a, dx, dy) == (x, y)