(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.
forked from JohannHotzel/PointInPolygon
-
Notifications
You must be signed in to change notification settings - Fork 0
(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
unitycoder/PointInPolygon
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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 0
No packages published
Languages
- C# 100.0%