Replace mjMIN and mjMAX with mju_min and mju_max, where possible.
PiperOrigin-RevId: 566602924 Change-Id: I2d24183d0d9df3e647bb2d7d7544473582f38128
This commit is contained in:
committed by
Copybara-Service
parent
9cf1f6eba4
commit
dfd48dd821
@@ -1260,7 +1260,7 @@ void mjCComposite::BoxProject(double* pos) {
|
||||
|
||||
// cylinder
|
||||
else if (type==mjCOMPTYPE_CYLINDER) {
|
||||
double L0 = mjMAX(mju_abs(pos[0]), mju_abs(pos[1]));
|
||||
double L0 = mju_max(mju_abs(pos[0]), mju_abs(pos[1]));
|
||||
mjuu_normvec(pos, 2);
|
||||
pos[0] *= size[0]*L0;
|
||||
pos[1] *= size[1]*L0;
|
||||
|
||||
Reference in New Issue
Block a user