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

Expand docs for Box{2,3}D::{contains,contains_inclusive,from_points} #539

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

airwoodix
Copy link
Contributor

Resolves #519.

This patch expands the docstrings of Box2D::from_points and Box3D::from_points, to lift the ambiguity reported in #519. The docstring in Rect::from_points already contained a relevant comment, added in #255.

Also add examples to Box2D::contains, Box2D::contains_inclusive and the corresponding Box3D associated functions.

This patch does not contain any functional code, only documentation, changes.

Copy link
Contributor

@nical nical left a comment

Choose a reason for hiding this comment

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

Thanks!

@nical nical enabled auto-merge November 18, 2024 20:51
@nical nical added this pull request to the merge queue Nov 18, 2024
Merged via the queue into servo:main with commit f17b125 Nov 18, 2024
16 of 19 checks passed
@airwoodix airwoodix deleted the resolve-519 branch November 18, 2024 21:03
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.

The from_points for Box2D and Box3D does not work quite as advertised.
2 participants