コード例 #1
0
ファイル: test_vector4.py プロジェクト: adamlwgriffiths/Pyrr
 def test_create_unit_length_y_dtype(self):
     result = vector4.create_unit_length_y(dtype=np.float32)
     np.testing.assert_almost_equal(result, [0.,1.,0.,0.], decimal=5)
     self.assertTrue(result.dtype == np.float32)
コード例 #2
0
 def test_create_unit_length_y_dtype(self):
     result = vector4.create_unit_length_y(dtype=np.float32)
     np.testing.assert_almost_equal(result, [0., 1., 0., 0.], decimal=5)
     self.assertTrue(result.dtype == np.float32)