En:PointInPolygon
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
Содержание |
[править]
Account
Method of class MathModel
[править]
Syntax
PointInPolygon(x : Number, y : Number, point_array_X : Array, point_array_Y : Array) : Boolean
[править]
Description
Check: point (x, y) is in polygon with points coordinates in array (point_array_X, point_array_Y);
[править]
Parameters
- x - number. X - value relative tile (hexagon);
- y - number. Y - value relative tile (hexagon);
- point_array_X - array. Point array over axis Х;
- point_array_Y - array. Point array over axis Y;
[править]
Result
The method returns TRUE, if point (x, y) is in polygon with points coordinates in array (point_array_X, point_array_Y), FALSE - otherwise. Data type - Boolean