Beispiel #1
0
 def test_angle_degrees(self):
     v1 = Vuple((10, 10))
     v2 = Vuple((1, 0))
     assert 45 == round(Vuple.angle(v1, v2, radians=False))
Beispiel #2
0
def point_prob(x, y):
    v1 = (xz - x, y)
    v2 = (x, yz - y)
    return Vuple.angle(v2, v1, radians=False)
Beispiel #3
0
 def test_angle_radians(self):
     v1 = Vuple((10, 10))
     v2 = Vuple((1, 0))
     assert 3.1415926535897936 == (4 * Vuple.angle(v1, v2))