from compas.geometry import allclose
from compas.geometry import tangent_points_to_circle_xy


def test_tangent_points_to_circle_xy():
    circle = (0, 0, 0), 1.
    point = (2, 4, 0)
    t1, t2 = tangent_points_to_circle_xy(circle, point)
    assert allclose(t1, (-0.772, 0.636, 0.000), tol=1e-3)
    assert allclose(t2, (0.972, -0.236, 0.000), tol=1e-3)
f26f5c519bd63ec26ea30018a8eba4f227a9bbcd
<mask token>

<mask token>


def test_tangent_points_to_circle_xy():
    circle = (0, 0, 0), 1.0
    point = 2, 4, 0
    t1, t2 = tangent_points_to_circle_xy(circle, point)
    assert allclose(t1, (-0.772, 0.636, 0.0), tol=0.001)
    assert allclose(t2, (0.972, -0.236, 0.0), tol=0.001)

from compas.geometry import allclose
from compas.geometry import tangent_points_to_circle_xy


def test_tangent_points_to_circle_xy():
    circle = (0, 0, 0), 1.0
    point = 2, 4, 0
    t1, t2 = tangent_points_to_circle_xy(circle, point)
    assert allclose(t1, (-0.772, 0.636, 0.0), tol=0.001)
    assert allclose(t2, (0.972, -0.236, 0.0), tol=0.001)

from compas.geometry import allclose
from compas.geometry import tangent_points_to_circle_xy


def test_tangent_points_to_circle_xy():
    circle = (0, 0, 0), 1.
    point = (2, 4, 0)
    t1, t2 = tangent_points_to_circle_xy(circle, point)
    assert allclose(t1, (-0.772, 0.636, 0.000), tol=1e-3)
    assert allclose(t2, (0.972, -0.236, 0.000), tol=1e-3)