If,
A = ax i + ay j + az k
B = bx i + by j + bz k ,
where
i, j, and k are unit vectors in the x, y, and z directions.
|A| = sqrt(ax2 + ay2 + az2)
|B| = sqrt(bx2 + by2 + bz2)
then:
A.B = |A||B|cos
a, where a is angle between the vectors.
A.B = axbx + ayby + azbz
AXB = |A||B|sin
a v, where v is a unit vector perpendicular to A and B
AXB = (aybz
- azby) i +
(azbx - axbz) j + (axby
- aybx) k