Renaming Vector#is_in method to Vector#crossed #401
AlainPilon
started this conversation in
Contribution
Replies: 2 comments 3 replies
-
That name is unfortunate. The code checks if the point is to the left or the right of the vector. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, initial idea was to rename it |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Regarding Vector#is_in
supervision/supervision/geometry/core.py
Line 45 in ddc036e
Should'nt it be named
crossed
instead? The current name would work if it was a polygon, as Points are either IN or OUT, but for a Vector it is not applicable.Beta Was this translation helpful? Give feedback.
All reactions