Template Function ripple::math::cross¶
Defined in File math.hpp
Function Documentation¶
-
template<typename
ImplA
, typenameImplB
, array_size_enable_t<ImplA, 2> = 0, array_size_enable_t<ImplB, 2> = 0>
constexpr autoripple::math
::
cross
(const Array<ImplA> &a, const Array<ImplB> &b) noexcept -> typename array_traits_t<ImplA>::Value¶ Cross product, this implementation is for 2d vectors, and returns the magnitude that would result along the missing z direction.
Cross product, this implementation is for 3d vectors, and returns a vector perpendicular to both.
- Return
The cross profuct of the two vectors.
- Parameters
a
: The first vector for the cross product.b
: The second vector for the cross profuct.
- Template Parameters
ImplA
: The implementation type of the first array.ImplB
: The implementation type of the second array.