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
This:
auto AnimationView::GetMarcherSizeAndOffset() const -> std::pair<wxPoint, wxPoint> { auto mode_size = towxPoint(mView->GetShowFieldSize()); auto bounding_box_upper_left = mode_size; auto bounding_box_low_right = towxPoint({ 0, 0 }); for (auto i = 0; mAnimation && i < mView->GetNumPoints(); ++i) { auto position = towxPoint(mAnimation->GetAnimateInfo(mCurrentBeat, i).mMarcherInfo.mPosition); bounding_box_upper_left = wxPoint(std::min(bounding_box_upper_left.x, position.x), std::min(bounding_box_upper_left.y, position.y)); bounding_box_low_right = wxPoint(std::max(bounding_box_low_right.x, position.x), std::max(bounding_box_low_right.y, position.y)); } return { bounding_box_low_right - bounding_box_upper_left, mode_size / 2 + bounding_box_upper_left }; }
Looks like it could be done with ranges more efficiently.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This:
Looks like it could be done with ranges more efficiently.
The text was updated successfully, but these errors were encountered: