View Single Post

  #5 (permalink)  
Old 02-23-2005
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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.
Reply With Quote