Skip to content

Commit

Permalink
test_direct_api.py -> rename vec_dir to is_direction
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Jun 23, 2024
1 parent 79cd2c0 commit bab54c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_direct_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3692,21 +3692,21 @@ def test_vector_transform(self):
a = Vector(1, 2, 3)
pxy = Plane.XY
pxy_o1 = Plane.XY.offset(1)
self.assertEqual(a.transform(pxy.forward_transform, vec_dir=True), a)
self.assertEqual(a.transform(pxy.forward_transform, is_direction=False), a)
self.assertEqual(
a.transform(pxy.forward_transform, vec_dir=False), a.normalized()
a.transform(pxy.forward_transform, is_direction=True), a.normalized()
)
self.assertEqual(
a.transform(pxy_o1.forward_transform, vec_dir=True), Vector(1, 2, 2)
a.transform(pxy_o1.forward_transform, is_direction=False), Vector(1, 2, 2)
)
self.assertEqual(
a.transform(pxy_o1.forward_transform, vec_dir=False), a.normalized()
a.transform(pxy_o1.forward_transform, is_direction=True), a.normalized()
)
self.assertEqual(
a.transform(pxy_o1.reverse_transform, vec_dir=True), Vector(1, 2, 4)
a.transform(pxy_o1.reverse_transform, is_direction=False), Vector(1, 2, 4)
)
self.assertEqual(
a.transform(pxy_o1.reverse_transform, vec_dir=False), a.normalized()
a.transform(pxy_o1.reverse_transform, is_direction=True), a.normalized()
)

def test_intersect(self):
Expand Down

0 comments on commit bab54c7

Please sign in to comment.