dot-xx
A personal collection of small C++ modules
Loading...
Searching...
No Matches
cross.xx File Reference

Cross product of 3D vectors. More...

Namespaces

namespace  dxx::math
 The main namespace of the dxx::math module.

Functions

template<mut_vector Out, vector_like< Out > U, vector_like< Out > V>
void dxx::math::cross (const U &u, const V &v, Out &out)
 Cross product of two 3D vectors (via out parameter)
template<mut_vector Out, vector_like< Out > U, vector_like< Out > V>
constexpr Out dxx::math::cross (const U &u, const V &v)
 Cross product of two 3D vectors (via return value)
template<mut_vector U, vector_like< U > V>
constexpr U dxx::math::cross (const U &u, const V &v)
 Cross product of two 3D vectors (via return value of default type)

Detailed Description

Cross product of 3D vectors.