Registered Member
|
Hello,
As I'm quite new in Eigen and considering my vector mathematics belong to past I just wonder something. I have to implement the following test, described in a paper : (v0 x v1) . v > 0 && (v1 x v2) . v > 0 && (v2 x v0) . v > 0 I tried the following code :
It ended (at compile time) by the follow message :
But that does not ring me a bell... Has anyone got an idea ? Thanks. |
Registered Member
|
The dot product v . w in Eigen is v.dot(w) and the cross product v x w in Eigen is v.cross(w), so the triple product (v0 x v1) . w is written in Eigen as v0.cross(v1).dot(w) .
Also see http://eigen.tuxfamily.org/dox/QuickRefPage.html , section "Arithmetic Operators". |
Registered Member
|
Seems to work.
Thanks a lot, the link you just gave me is clearly usefull ! |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]