Open kritma opened 1 year ago
How?
count
must always be less than or equal to b2_maxPolygonVertices
according to the preceding if statement, so the call to b2Min
is not required.
@krabhi7 this is same as
if(count < 3) {
return hull;
}
if(count > b2_maxPolygonVertices) {
return hull;
}
count = b2Min(count, b2_maxPolygonVertices); // count <= b2_maxPolygonVertices because of early return