Boost vector problem

Hey, guys, I want to do vector (has 3 elements in itf) cross product using boost, for example I have vector v1, and v2 and I want to compute v3= v1 X v2, so that v3 is a new vector and be normal to the plane compised of v1 and v2. Does any body has any idea about which function in boost should I call ? Thanks in advance! Helen --------------------------------- Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.

On Fri, 19 May 2006, zhao haifang wrote:
Hey, guys,
I want to do vector (has 3 elements in itf) cross product using boost, for example I have vector v1, and v2 and I want to compute v3= v1 X v2, so that v3 is a new vector and be normal to the plane compised of v1 and v2.
Does any body has any idea about which function in boost should I call ?
See uBLAS, function outer_prod: http://www.boost.org/libs/numeric/ublas/doc/vector_expression.htm#vector_ope... (and scroll down to outer_prod). -- François Duranleau LIGUM, Université de Montréal "The power of imagination is the ability to create your own future [...]" - from _Neon Genesis Evangelion: The End of Evangelion_ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
François Duranleau
-
zhao haifang