vector - cross product in TinyOs? -
how can make cross product between 2 vector in tinyos (nesc)?
if have position=p1+x*ex+y*ey;
; ex,ey: vector.
i searching couldn't find thing helped !!!
so there helpful way ? if go definition of cross product there angle don't how 2 vector ?
if have 2 vectors , b (a = (a1, a2, a3) , b = (b1, b2, b3)) cross product can computed using following formula:
a x b = (a2*b3 - a3*b2, a3*b1 - a1*b3, a1*b2 - a2*b1)