Skip to content
New issue

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

2d bounding box class for Axis #12

Closed
3 tasks done
martinjrobins opened this issue Jun 9, 2018 · 0 comments
Closed
3 tasks done

2d bounding box class for Axis #12

martinjrobins opened this issue Jun 9, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@martinjrobins
Copy link
Collaborator

martinjrobins commented Jun 9, 2018

The Axis class uses std::array<float,4> for its xy limits [xmin,ymin,xmax,ymax]. This should be a separate bounding box class, which allows for:

  • adding bounding boxes together to get the minimum box enclosing both: ie. [0,0,1,1] + [0.5,0.5,2,2] = [0,0,2,2]
  • translating bounding box by an 2d vector
  • scaling bounding box by a scalar amount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant