Skip to content

Commit

Permalink
test_direct_api.py -> fix rotation compare with quaternions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Jan 15, 2024
1 parent 8c0a950 commit 2f27c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_direct_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def assertOrientationVectorAlmostEquals(
first.Z,
)
firste = gp_Trsf()
firste.SetTransformation(firstq)
firste.SetRotation(firstq)
firstrot = firste.GetRotation()
first_vector = Vector(math.degrees(a) for a in firstrot.GetEulerAngles(gp_EulerSequence.gp_Intrinsic_XYZ))

Expand All @@ -138,7 +138,7 @@ def assertOrientationVectorAlmostEquals(
second_vec_in.Z,
)
seconde = gp_Trsf()
seconde.SetTransformation(secondq)
seconde.SetRotation(secondq)
secondrot = seconde.GetRotation()
second_vector = Vector(math.degrees(a) for a in secondrot.GetEulerAngles(gp_EulerSequence.gp_Intrinsic_XYZ))

Expand Down

0 comments on commit 2f27c0a

Please sign in to comment.