Method PointOnPolygonBoundsXZ
PointOnPolygonBoundsXZ(Vector3, List<Vector3>, float)
Determines if a point lies on the bounds of a polygon, ignoring the y components.
Declaration
public static bool PointOnPolygonBoundsXZ(Vector3 testPoint, List<Vector3> vertices, float epsilon = 1E-45)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | testPoint | The point to test. |
List<Vector3> | vertices | Vertices defining the outline of a polygon. |
float | epsilon | Custom epsilon value used when testing if the point lies on an edge. |
Returns
Type | Description |
---|---|
bool | True if the point lies on any edge of the polygon, false otherwise. |