I need to check for mouse click on rectangular areas that are not
horizontal e.g. it may be an area 200 pixels long, 10 pixels wide but
at an angle of 0, 15, 30, 45, 60, 75 or 90 degrees to the horizontal.
The package I'm using has a 'PointinRect' function but it assumes
a horizontal rectangular area.
I am going to have to hand-code the test, so if anyone has an
example they are willing to share I'd be very grateful.
TIA
T.
horizontal e.g. it may be an area 200 pixels long, 10 pixels wide but
at an angle of 0, 15, 30, 45, 60, 75 or 90 degrees to the horizontal.
The package I'm using has a 'PointinRect' function but it assumes
a horizontal rectangular area.
I am going to have to hand-code the test, so if anyone has an
example they are willing to share I'd be very grateful.
TIA
T.
Comment