Math Help?

Scott Rossi scott at tactilemedia.com
Fri Apr 30 15:35:04 EDT 2010


Recently, Devin Asay wrote:

>> Was wondering if those with more comprehensive math skills than I know how
>> to determine if one point X,Y falls within a triangular region defined by 3
>> points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.
> 
> I don't know from math, but I do know you can use the within() function, as
> opposed to the 'is within' operator, to test for "within-ness" of
> non-rectangular objects. For instance, if you have an opaque, 3-sided polygon
> graphic, within() will only be true if the point you're testing is inside the
> filled part of the triangle.
> 
> I'm sure some real math expert would have a "real math" solution.

Thanks Devin, that latter is correct:  I need the math solution. :-)

Best Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design





More information about the use-livecode mailing list