Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

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”)

Release notes

Example Databases

Blog Entries

Created 18th August 2014, last changed 16th June 2020


Math.InchToPixel - Math.IsValidCC

Feedback: Report problem or ask question.