Skip to content

Commit

Permalink
Merge pull request #1775 from ablev-nv/gfvec_slerp_test_fix
Browse files Browse the repository at this point in the history
Small fix to GfVec Slerp test

(Internal change: 2227045)
  • Loading branch information
pixar-oss committed Apr 22, 2022
2 parents d3fec6e + 38dd0a7 commit d10341c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxr/base/gf/testenv/testGfVec.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def MethodsTest(self, Vec):
v3 = Gf.Slerp(0.75, v1, v2)
self.assertTrue(Gf.IsClose(v3, Vec(-.70711, 0, -.70711), eps))
v3 = Gf.Slerp(1, v1, v2)
self.assertTrue(Gf.IsClose(v3, v3, eps))
self.assertTrue(Gf.IsClose(v3, v2, eps))

# test Slerp w/ opposing vectors
SetVec( v1, [0,1,0] )
Expand All @@ -524,7 +524,7 @@ def MethodsTest(self, Vec):
v3 = Gf.Slerp(0.75, v1, v2)
self.assertTrue(Gf.IsClose(v3, Vec(0, -.70711, .70711), eps))
v3 = Gf.Slerp(1, v1, v2)
self.assertTrue(Gf.IsClose(v3, v3, eps))
self.assertTrue(Gf.IsClose(v3, v2, eps))

def test_Types(self):
vecTypes = [Gf.Vec2d,
Expand Down

0 comments on commit d10341c

Please sign in to comment.