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