En:PointInRect
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
Содержание |
[править]
Account
Method of class MathModel
[править]
Syntax
PointInRect(x : Number, y : Number], xRect : Number, yRect : Number, width : Number, height : Number) : Boolean
[править]
Description
Check: point (x, y) is in rectangle begining with coordinates (xRect, yRect). Method PointInRect works faster than PointInPolygon;
[править]
Parameters
- x - number. X - value relative tile (hexagon);
- y - number. Y - value relative tile (hexagon);
- xRect - number. X - value relative tile (hexagon);
- yRect - number. Y - value relative tile (hexagon);
- width - number. Rectangle width;
- height - number. Rectangle height;
[править]
Result
The method returns TRUE, if point (x, y) is in rectangle begining with coordinates (xRect, yRect), FALSE - otherwise. Data type - Boolean