Hi BiGYaN, triangle is a 2D object which can be formed by any 3 non- collinear points. It can exist in 4D, just like a point existing in 3D.
On May 31, 2:11 am, "Victor Carvalho" <[EMAIL PROTECTED]> wrote: > Feng, how can form a triangle in four dimensions??? > > 2007/5/29, BiGYaN <[EMAIL PROTECTED]>: > > > > > > > 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 .... > > -- > Victor Carvalho > Computação - UFC > GELSoL - Grupo de Estudos de Linux e Software Livre > E-Jr Empresa Júnior de Computação --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---