Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

Math.InsidePolygon

Checks if one point is inside a polygon.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Math 2.2 Yes Yes Yes Yes Yes

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

Parameters

Parameter Description Example value
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”)

Example Databases


Math.InchToPixel   -   Math.IsValidCC

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos