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

Add a function in C# ready Boolean functions... #12771

Open
vsfeedback opened this issue Jan 7, 2025 · 4 comments
Open

Add a function in C# ready Boolean functions... #12771

vsfeedback opened this issue Jan 7, 2025 · 4 comments
Assignees
Labels
area-System.Drawing System.Drawing issues
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


public static bool IsPointInPolygon(int[] polygonPoints, Point p)
{
//here checks if the polygon made from the xy points contains the point inside of the polygon and returns true if the point is inside the polygon and false if not.
}


Original Comments

Feedback Bot on 12/1/2024, 09:47 PM:

Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. You will hear from us in about a week on our next steps.

@dotnet-policy-service dotnet-policy-service bot added the untriaged The team needs to look at this issue in the next triage label Jan 7, 2025
@huoyaoyuan
Copy link
Member

This doesn't fall into any area covered by .NET BCL. In System.Drawing there is limited support for data structures like points on 2D plain, but arithmetical or geometric algorithms are out-of-scope.

@jeffschwMSFT jeffschwMSFT added the area-System.Drawing System.Drawing issues label Jan 8, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-drawing
See info in area-owners.md if you want to be subscribed.

@ViktorHofer
Copy link
Member

@JeremyKuhne @lonitra do you think we would want to add such a higher level api?

@JeremyKuhne JeremyKuhne transferred this issue from dotnet/runtime Jan 13, 2025
@JeremyKuhne
Copy link
Member

@ViktorHofer I think we can hold onto this on the backlog to see what sort of interest there is. We don't have bandwidth currently to dig in ourselves, and this would need to be developed more fully if there is strong interest.

  • We'd want to handle both types of points (Point, PointF)
  • Should Region or GraphicsPath have helpers?
  • What algorithm would we be using

@JeremyKuhne JeremyKuhne removed the untriaged The team needs to look at this issue in the next triage label Jan 13, 2025
@JeremyKuhne JeremyKuhne added this to the Future milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Drawing System.Drawing issues
Projects
None yet
Development

No branches or pull requests

5 participants