Ejemplo n.º 1
0
 def test_45(self):
     assert pytest.approx(vect_angle([1,1,0], [1,1,0]), 45.0)
Ejemplo n.º 2
0
 def test_180(self):
     assert pytest.approx(vect_angle([1,0,0], [-1,0,0]), 180.0)
Ejemplo n.º 3
0
 def test_90(self):
     assert pytest.approx(vect_angle([1,0,0], [0,1,0]), 90.0)
Ejemplo n.º 4
0
 def gamma(self):
     """cell angle gamma in degrees"""
     return vect_angle(self.__vects[0], self.__vects[1])
Ejemplo n.º 5
0
 def test_0(self):
     assert pytest.approx(vect_angle([1,0,0], [1,0,0]), 0.0)
Ejemplo n.º 6
0
 def alpha(self):
     """cell angle alpha in degrees"""
     return vect_angle(self.__vects[1], self.__vects[2])
Ejemplo n.º 7
0
 def beta(self):
     """cell angle beta in degrees"""
     return vect_angle(self.__vects[0], self.__vects[2])
Ejemplo n.º 8
0
 def beta(self):
     """cell angle beta in degrees"""
     return vect_angle(self.__vects[0], self.__vects[2])
Ejemplo n.º 9
0
 def gamma(self):
     """cell angle gamma in degrees"""
     return vect_angle(self.__vects[0], self.__vects[1])      
Ejemplo n.º 10
0
 def alpha(self):
     """cell angle alpha in degrees"""
     return vect_angle(self.__vects[1], self.__vects[2])
Ejemplo n.º 11
0
 def test_0(self):
     assert pytest.approx(vect_angle([1, 0, 0], [1, 0, 0]), 0.0)
Ejemplo n.º 12
0
 def test_45(self):
     assert pytest.approx(vect_angle([1, 1, 0], [1, 1, 0]), 45.0)
Ejemplo n.º 13
0
 def test_90(self):
     assert pytest.approx(vect_angle([1, 0, 0], [0, 1, 0]), 90.0)
Ejemplo n.º 14
0
 def test_180(self):
     assert pytest.approx(vect_angle([1, 0, 0], [-1, 0, 0]), 180.0)