Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
Vector3.hpp File Reference

Namespaces

namespace  mundy

Concepts

concept  mundy::ValidVector3Type
 A temporary concept to check if a type is a valid AVector3 type TODO(palmerb4): Extend this concept to contain all shared setters and getters for our vectors.

Functions

Special vector3 operations
template<typename U, typename T, ValidAccessor< U > Accessor1, ValidAccessor< T > Accessor2>
constexpr auto mundy::cross (const AVector3< U, Accessor1 > &a, const AVector3< T, Accessor2 > &b) -> AVector3< scalar_product_result_t< U, T > >
 Cross product.
template<typename T, ValidAccessor< T > Accessor, typename OutputType = typename NumTraits<T>::NonInteger>
AVector3< OutputType > mundy::perp (const AVector3< T, Accessor > &v)
 A unit vector perpendicular to v, chosen deterministically.