I need to know how to determine if a specific x,y coordinate exists within a trapezoid defined in a jit.lcd object.
My guess I can get this done with the right formula in an expr object, but I'm wondering if there's a more "Max" way to do it.
I have a jit.lcd that's 640x480.
Within that, I have a trapezoid. It will be different shape (i.e., made of 4 different points) depending on different circumstances.
So, let's say within my 640x480 jit.lcd I have trapezoid defined by the 4 x,y coordinates:
Any easy way to determine if another x,y coordinate falls inside this trapezoid (or, conversely, falls outside of it)?
If nothing easy, anyone know the formula(s) I need to use in expr?
Thanks for any help.