mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 21:30:09 +00:00
Update Test_v3interp.cpp
add test case for https://github.com/bulletphysics/bullet3/pull/313
This commit is contained in:
parent
15d5659483
commit
b36936a4ab
@ -62,7 +62,9 @@ int Test_v3interp(void)
|
||||
v2.setW(w);
|
||||
|
||||
correct_res = v3interp_ref(correct_res, v1, v2, rt);
|
||||
test_res.setInterpolate3(v1, v2, rt);
|
||||
//test self-referencing vector, see issue https://github.com/bulletphysics/bullet3/pull/313
|
||||
test_res = v1;
|
||||
test_res.setInterpolate3(test_res, v2, rt);
|
||||
|
||||
if( fabs(correct_res.m_floats[0] - test_res.m_floats[0]) +
|
||||
fabs(correct_res.m_floats[1] - test_res.m_floats[1]) +
|
||||
|
Loading…
Reference in New Issue
Block a user