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.]))
def test_create_yz_invert_distance(self): result = plane.create_yz(invert=True, distance=2.) self.assertTrue(np.allclose(result, [-1., 0., 0., 2.]))
def test_create_yz(self): result = plane.create_yz() self.assertTrue(np.allclose(result, [1., 0., 0., 0.]))