Just test whether they are collinear or not .... i.e. get the slopes, m1 from 1st and 2nd point m2 from 2nd and 3rd point
if m1==m2 then they do not form a triangle else they do Computing the area of the triangle and testing for 0 might also work .... but I feel that the computation will be bigger .... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---