I just write this thread because there still have questions about dot and cross products here, and I remeber that I wrote some other threads about them (links at the end).
Some reminders about differences between cross product and dot product.
The first one is important, the cross product creates a vector, the dot product creates a number !
Graphically, the dot can be represented like this :
The same way for the cross :
The problem about the cross product with PC-DMIS, is that the result is always a unit vector (the result is divided by its own length).
So you can't use it directly to calculate angles or distances.
I just ran into the cross product returning the unit vector after beating my head against the wall for an hour trying to figure out why my point-to-line code wasn't working. Ugh... It would be helpful if that defect was at least stated in the documentation.
I just ran into the cross product returning the unit vector after beating my head against the wall for an hour trying to figure out why my point-to-line code wasn't working. Ugh... It would be helpful if that defect was at least stated in the documentation.