Jump to content


- - - - -

Vector cross product


  • You cannot reply to this topic
No replies to this topic

#1 devil20

    New Member

  • Members
  • PipPip
  • 12 posts

Posted 02 April 2010 - 12:45 PM

Hi

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 ?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users