Shortcuts

Template Function ripple::math::cross

Function Documentation

template<typename ImplA, typename ImplB, array_size_enable_t<ImplA, 2> = 0, array_size_enable_t<ImplB, 2> = 0>
constexpr auto ripple::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.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples