Deprecate mju_rotVecMat and mju_rotVecMatT in favor of mju_mulMatVec3 and mju_mulMatTVec3.
These functions names and argument ordering are more consistent with the rest of the API. PiperOrigin-RevId: 643788290 Change-Id: I783eda8021b80b82098e23ed95669b102bb82508
This commit is contained in:
committed by
Copybara-Service
parent
739512a0e4
commit
6067048537
@@ -471,8 +471,8 @@ void mju_transformSpatial(mjtNum res[6], const mjtNum vec[6], int flg_force,
|
||||
|
||||
// apply rotation if provided
|
||||
if (rotnew2old) {
|
||||
mju_rotVecMatT(res, tran, rotnew2old);
|
||||
mju_rotVecMatT(res+3, tran+3, rotnew2old);
|
||||
mju_mulMatTVec3(res, rotnew2old, tran);
|
||||
mju_mulMatTVec3(res+3, rotnew2old, tran+3);
|
||||
}
|
||||
|
||||
// otherwise copy
|
||||
|
||||
Reference in New Issue
Block a user