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