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

PrevUpHomeNext

cross_product

Computes the cross product of two vectors.

Description

All vectors should have the same dimension, 3 or 2.

Synopsis

template<typename ResultP, typename P1, typename P2>
ResultP cross_product(P1 const & p1, P2 const & p2)

Parameters

Type

Concept

Name

Description

ResultP

-

Must be specified

P1 const &

p1

first vector

P2 const &

p2

second vector

Returns

the cross product vector

Header

#include <boost/geometry/arithmetic/cross_product.hpp>


PrevUpHomeNext