...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 dot product (or scalar product) of 2 vectors (points).
template<typename P1, typename P2> select_coordinate_type<P1, P2>::type dot_product(P1 const & p1, P2 const & p2)
Type |
Concept |
Name |
Description |
---|---|---|---|
P1 const & |
p1 |
first point |
|
P2 const & |
p2 |
second point |
the dot product
Either
#include <boost/geometry/geometry.hpp>
Or
#include <boost/geometry/arithmetic/dot_product.hpp>