FreeBSD Manual Pages
image_hit(3) Arcan Lua API image_hit(3) NAME image_hit - Test if the visible region of a specific object covers a specific point in screen space. SYNOPSIS true or false image_hit( vid, x, y ) DESCRIPTION NOTES 1 This function works by applying the active transform of the bounding volume and then projects using the currently active output projection and finally performs a point-in-polygon test for the two triangles. This is performed even for simpler cases (e.g. non-hierarchical translations etc.). EXAMPLE function image_hit0() a = fill_surface(32, 32, 0, 255, 0); rotate_image(a, 45); show_image(a); if (image_hit(a, 0, 0) == false and image_hit(a, 16, 16) == true) then print("OK"); else print("Fail"); end end SEE ALSO: pick_items(3) image April 2025 image_hit(3)
NAME | SYNOPSIS | DESCRIPTION | NOTES | EXAMPLE | SEE ALSO:
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=image_hit&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>