Home | Libraries | People | FAQ | More |
Computes the cross product of two vectors.
All vectors should have the same dimension, 3 or 2.
template<typename P> P cross_product(P const & p1, P const & p2)
Type |
Concept |
Name |
Description |
---|---|---|---|
P const & |
p1 |
first vector |
|
P const & |
p2 |
second vector |
the cross product vector
#include <boost/geometry/arithmetic/cross_product.hpp>