...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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>