Vector cross product

devil20 101 Apr 02, 2010 at 12:45


I am trying to learn something. I found some code but donot understand what it trying to say.

   double a = cross(ev2->v - ev1->v, v->v - ev1->v).length2();
   double b = (ev2->v - ev1->v).length2();
    if (a < b * carve::EPSILON2) 
          // vertex-edge intersection

ev1,ev2 are edges and ev1->v,ev2->v is vector while v is another vector. I completely donot not understand what this sentence make sense.

It try to find intersection between edge and verter but how ? Anyone can explain better ?

0 Replies

Please log in or register to post a reply.

No replies have been made yet.