예제 #1
0
 def test_45(self):
     assert pytest.approx(vect_angle([1,1,0], [1,1,0]), 45.0)
예제 #2
0
 def test_180(self):
     assert pytest.approx(vect_angle([1,0,0], [-1,0,0]), 180.0)
예제 #3
0
 def test_90(self):
     assert pytest.approx(vect_angle([1,0,0], [0,1,0]), 90.0)
예제 #4
0
파일: Box.py 프로젝트: yfyh2013/atomman
 def gamma(self):
     """cell angle gamma in degrees"""
     return vect_angle(self.__vects[0], self.__vects[1])
예제 #5
0
 def test_0(self):
     assert pytest.approx(vect_angle([1,0,0], [1,0,0]), 0.0)
예제 #6
0
파일: Box.py 프로젝트: yfyh2013/atomman
 def alpha(self):
     """cell angle alpha in degrees"""
     return vect_angle(self.__vects[1], self.__vects[2])
예제 #7
0
파일: Box.py 프로젝트: yfyh2013/atomman
 def beta(self):
     """cell angle beta in degrees"""
     return vect_angle(self.__vects[0], self.__vects[2])
예제 #8
0
파일: Box.py 프로젝트: hlyang1992/atomman
 def beta(self):
     """cell angle beta in degrees"""
     return vect_angle(self.__vects[0], self.__vects[2])
예제 #9
0
파일: Box.py 프로젝트: hlyang1992/atomman
 def gamma(self):
     """cell angle gamma in degrees"""
     return vect_angle(self.__vects[0], self.__vects[1])      
예제 #10
0
파일: Box.py 프로젝트: hlyang1992/atomman
 def alpha(self):
     """cell angle alpha in degrees"""
     return vect_angle(self.__vects[1], self.__vects[2])
예제 #11
0
 def test_0(self):
     assert pytest.approx(vect_angle([1, 0, 0], [1, 0, 0]), 0.0)
예제 #12
0
 def test_45(self):
     assert pytest.approx(vect_angle([1, 1, 0], [1, 1, 0]), 45.0)
예제 #13
0
 def test_90(self):
     assert pytest.approx(vect_angle([1, 0, 0], [0, 1, 0]), 90.0)
예제 #14
0
 def test_180(self):
     assert pytest.approx(vect_angle([1, 0, 0], [-1, 0, 0]), 180.0)