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

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

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