Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Math.InsidePolygon

Checks if one point is inside a polygon.

Component Version macOS Windows Linux Server iOS SDK
Math 2.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes

Deprecated

This function was deprecated.

MBS( "Math.InsidePolygon"; X; Y; Values )   More

Parameters

Parameter Description Example
X The X coordinate 30
Y The Y coordinate 30
Values The list of x and y values. Delimiter is semicolon. Numbers in US format. "10;20;30;20;30;40;10;40

Description

Checks if one point is inside a polygon.

Examples

Check if point is inside polygon:

$result = MBS("Math.InsidePolygon"; 30; 30; "10;20;30;20;30;40;10;40")

Check with GPS coordinates:

MBS("Math.InsidePolygon"; 45.787; 4.831;
"45.78603562364937;4.830036163330078;
45.788691544176785;4.830873012542725;
45.78536975331141;4.833780527114868;
45.7881753329116;4.834917783737183”)

Call with 4 coordinate pairs:

MBS("Math.InsidePolygon"; 45.787; 4.831; $x1 & ";" & $y1 & ";" & $x2 & ";" & $y2 & ";" & $x3 & ";" & $y3 & ";" & $x4 & ";" & $y4)

Release notes

Example Databases

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 25th May 2021


Math.InchToPixel - Math.IsValidCC