We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (count < 3 || count > b2_maxPolygonVertices) { // check your data return hull; } count = b2Min(count, b2_maxPolygonVertices); //this line is unnecessary
The text was updated successfully, but these errors were encountered:
How?
Sorry, something went wrong.
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.
count
b2_maxPolygonVertices
b2Min
@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
No branches or pull requests
The text was updated successfully, but these errors were encountered: