Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2018. The current version is 1.90.0.
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>