示例#1
0
    def test_create_xy(self):
        result = plane.create_xy()
        self.assertTrue(np.allclose(result, [0., 0., 1., 0.]))

        result = plane.create_xy(distance=2.)
        self.assertTrue(np.allclose(result, [0., 0., 1., 2.]))

        result = plane.create_xy(invert=True, distance=2.)
        self.assertTrue(np.allclose(result, [0., 0., -1., -2.]))
示例#2
0
文件: test_plane.py 项目: RazerM/Pyrr
 def test_create_xy_invert_distance(self):
     result = plane.create_xy(invert=True, distance=2.)
     self.assertTrue(np.allclose(result, [0., 0., -1., 2.]))
示例#3
0
 def test_create_xy(self):
     result = plane.create_xy()
     self.assertTrue(np.allclose(result, [0., 0., 1., 0.]))
示例#4
0
文件: test_plane.py 项目: RazerM/Pyrr
 def test_create_xy(self):
     result = plane.create_xy()
     self.assertTrue(np.allclose(result, [0., 0., 1., 0.]))