Difference between revisions of "Shape:testPoint"
m (1 revision: Importing from potato (again).) |
m (included link to other languages) |
||
Line 1: | Line 1: | ||
− | |||
Checks whether a point lies inside the shape. | Checks whether a point lies inside the shape. | ||
This is particularly useful for mouse interaction with the shapes. By looping through all shapes and testing the mouse position with this function, we can find which shapes the mouse touches. | This is particularly useful for mouse interaction with the shapes. By looping through all shapes and testing the mouse position with this function, we can find which shapes the mouse touches. | ||
Line 17: | Line 16: | ||
{{#set:Description=Checks whether a point lies inside the shape. | {{#set:Description=Checks whether a point lies inside the shape. | ||
}} | }} | ||
+ | == Other Languages == | ||
+ | {{i18n|Shape:testPoint}} |
Revision as of 09:24, 23 January 2011
Checks whether a point lies inside the shape. This is particularly useful for mouse interaction with the shapes. By looping through all shapes and testing the mouse position with this function, we can find which shapes the mouse touches.
Function
Synopsis
hit = Shape:testPoint( x, y )
Arguments
Returns
boolean hit
- True if inside, false if outside
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info