Previous topic

poly_hull

Next topic

poly_line_clip

This Page

poly_is_point_in_polygonΒΆ

poly_is_point_in_polygon checks if a given point is inside or outside a closed polygon.

bInside = poly_is_point_in_polygon(x, y, xpoly, ypoly)

Return Value

bInside is TRUE (1) if the given point is inside the polygon and otherwise FALSE (0).

Parameters

x

x is the x coordinate of the point.

y

y is the y coordinate of the point.

xpoly

xpoly is a vector with x coordinates of the closed hull.

ypoly

ypoly is a vector with y coordinates of the closed hull.

Comment

If a point is “exactly” on an edge (bounary) of a polygon it is possible that the function returns TRUE (inside) or FALSE (outside).

See also

poly_hull

id-223843