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 2023. The current version is 1.89.0.
Computes the cross product of two vectors.
All vectors should have the same dimension, 3 or 2.
template<typename ResultP, typename P1, typename P2, std::enable_if_t< dimension< ResultP >::value !=3||! traits::make< ResultP >::is_specialized, int >> ResultP cross_product(P1 const & p1, P2 const & p2)
|
Type |
Concept |
Name |
Description |
|---|---|---|---|
|
ResultP |
- |
Must be specified |
|
|
std::enable_if_t< dimension< ResultP >::value !=3||! traits::make< ResultP >::is_specialized, int > |
- |
Must be specified |
|
|
P1 const & |
p1 |
first vector |
|
|
P2 const & |
p2 |
second vector |
the cross product vector
#include <boost/geometry/arithmetic/cross_product.hpp>