Skip to content

(Unity-C#) This class assesses whether a point lies within a polygon by employing a ray-casting technique and tracking the intersections. If the count is even, the point is considered inside the polygon; otherwise, it is deemed outside. Notably, points residing on the circumference of the polygon are treated as inside.

License

Notifications You must be signed in to change notification settings

unitycoder/PointInPolygon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

PointInPolygon

(Unity-C#) This class assesses whether a point lies within a polygon by employing a ray-casting technique and tracking the intersections. If the count is even, the point is considered inside the polygon; otherwise, it is deemed outside. Notably, points residing on the circumference of the polygon are treated as inside. The tolerance parameter can be adjusted to accommodate floating-point numbers when determining if a point is on the circumference.

About

(Unity-C#) This class assesses whether a point lies within a polygon by employing a ray-casting technique and tracking the intersections. If the count is even, the point is considered inside the polygon; otherwise, it is deemed outside. Notably, points residing on the circumference of the polygon are treated as inside.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%