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

Review comments for DM-1197 (Support some mixed-type operations for Point and Extent) #21

Merged
merged 3 commits into from Apr 15, 2015

Conversation

jdswinbank
Copy link
Contributor

No description provided.

Extent<int,N> floor(Extent<double,N> const & input);

/**
* Return the component-wise floor (round towards more positive).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ceil", not "floor".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix.

This adds mixed-type operators for Point and Extent, as well as new
floor, ceil, and truncate functions for Extent, to help deal with some
unfortunate differences between C++ and Python in how division
is expected to behave for integers.
Methods are much less verbose than the existing conversion constructors
in Python.
@TallJimbo TallJimbo merged commit 8196a1b into master Apr 15, 2015
@ktlim ktlim deleted the tickets/DM-1197 branch August 25, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants