nkamennoff
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. 
jitseniesen
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". 
nkamennoff
Registered Member

Seems to work.
Thanks a lot, the link you just gave me is clearly usefull ! 
Registered users: Baidu [Spider], Bing [Bot], davidemme, einar, Exabot [Bot], Google [Bot], google01103, leonine, Sogou [Bot], TheraHedwig, Uri_Herrera, wolfi323, Yahoo [Bot]