Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Fix typos in test vars (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmelnikow authored Jan 31, 2019
1 parent 6eaabf2 commit dd390d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blmath/geometry/primitives/test_plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ def test_line_plane_intersections(self):
pts = np.array([[0., -1., 0.], [0., 0., 0.], [0., -1., 0.], [0., -1., 0.]])
rays = np.array([[1., 0., 0.], [1., 0., 0.], [0., 1., 0.], [1., 1., 0.]])
expected = np.array([[np.nan, np.nan, np.nan], [np.nan, np.nan, np.nan], [0., 0., 0.], [1., 0., 0.]])
intersections, is_intserseting = plane.line_xsections(pts, rays)
intersections, is_intersecting = plane.line_xsections(pts, rays)
np.testing.assert_array_equal(intersections, expected)
np.testing.assert_array_equal(is_intserseting, [False, False, True, True])
np.testing.assert_array_equal(is_intersecting, [False, False, True, True])

def test_line_segment_plane_intersection(self):
# x-z plane
Expand All @@ -279,9 +279,9 @@ def test_line_segment_plane_intersections(self):
a = np.array([[0., -1., 0.], [0., 0., 0.], [0., -1., 0.], [0., -1., 0.], [0., 1., 0.]])
b = np.array([[1., -1., 0.], [1., 0., 0.], [0., 1., 0.], [2., 1., 0.], [0., 2., 0.]])
expected = np.array([[np.nan, np.nan, np.nan], [np.nan, np.nan, np.nan], [0., 0., 0.], [1., 0., 0.], [np.nan, np.nan, np.nan]])
intersections, is_intserseting = plane.line_segment_xsections(a, b)
intersections, is_intersecting = plane.line_segment_xsections(a, b)
np.testing.assert_array_equal(intersections, expected)
np.testing.assert_array_equal(is_intserseting, [False, False, True, True, False])
np.testing.assert_array_equal(is_intersecting, [False, False, True, True, False])

def test_mesh_plane_intersection(self):
# x-z plane
Expand Down

0 comments on commit dd390d5

Please sign in to comment.