|
Hi,
It is not difficult to make code to find if a given position is within an area even if the area is not a know mathematical figure (like a circle or a rectangle).
if you wants to draw an area you have to code all points and let your program calculate if it is within reaion as Richard mentioned. Find all points, skip 1 then you have triangle, move to 0,0 etc to find if it is within area. This way yoi only need triangle no matter how complex your area is. |