-
Notifications
You must be signed in to change notification settings - Fork 8
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
add: some predicates #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @ccalvocm! I have just two minor comments for the docstrings and then I think it's good to go.
src/predicates.cpp
Outdated
@@ -62,7 +78,7 @@ void init_predicates(py::module& m) { | |||
|
|||
m.def("contains", py::vectorize(&contains), py::arg("a"), py::arg("b"), | |||
R"pbdoc( | |||
Returns True if B is completely inside A. | |||
Returns True if A is completely inside B. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the original description is the correct one?
@ccalvocm could you please add the two functions added in this PR in the documentation (API reference)? It's here: https://github.com/benbovy/spherely/blob/main/docs/api.rst#predicates. |
Add within and disjoint predicates to api.rst and .pyi
Thanks again @ccalvocm! |
Add some predicates to spherely like within and disjoint.