oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Polygon Relations

Functions

bool oevislib_net.Path.Contains (Point2D inPoint)
 Checks if a point is contained inside the polygon.
bool oevislib_net.Path.IsConvex ()
 Checks if the polygon is convex.
bool oevislib_net.Path.Contains (Array< Point2D > inPoints, Optional< Array< bool > > outIsContainedArray, Optional< Array< Point2D > > outContainedPoints)
 For each point in the array, checks if it is contained in the polygon.
bool oevislib_net.Path.Contains (Path inSubPolygon)
 Checks if the provided path is contained inside the calling object.

Detailed Description

Function Documentation

◆ Contains() [1/3]

bool oevislib_net.Path.Contains ( Array< Point2D > inPoints,
Optional< Array< bool > > outIsContainedArray,
Optional< Array< Point2D > > outContainedPoints )
inline

For each point in the array, checks if it is contained in the polygon.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Parameters
inPointsArray of input points.
outIsContainedArrayArray where each element tells if the corresponding points are contained in the polygon.
outContainedPointsArray containing only the contained points.
Returns
True if every point of the array is contained in the polygon, false otherwise.

◆ Contains() [2/3]

bool oevislib_net.Path.Contains ( Path inSubPolygon)
inline

Checks if the provided path is contained inside the calling object.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Parameters
inSubPolygonInput polygon.
Returns
True if the input polygon is fully contained in the calling object, false otherwise.

◆ Contains() [3/3]

bool oevislib_net.Path.Contains ( Point2D inPoint)
inline

Checks if a point is contained inside the polygon.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Parameters
inPointInput point.
Returns
True if the point is contained in the polygon, false otherwise.

◆ IsConvex()

bool oevislib_net.Path.IsConvex ( )
inline

Checks if the polygon is convex.

It returns a correct result only if the path is actually a polygon (close and without self-intersections).

Returns
True if the polygon is convex, false otherwise.