|
|
template<typename T , int N, bool V> |
| static constexpr auto | eagine::math::dimension (const vector< T, N, V > &) noexcept |
| | Returns the dimension of a vector.
|
| |
|
template<typename T , int N, bool V> |
| static auto | eagine::math::is_zero (const vector< T, N, V > &v) noexcept -> bool |
| | Tests if a vector has zero lenght.
|
| |
|
template<typename T , int N, bool V> |
| static constexpr auto | eagine::math::dot (const vector< T, N, V > &a, const vector< T, N, V > &b) noexcept |
| | Vector dot product.
|
| |
|
template<typename T , bool V> |
| static auto | eagine::math::perpendicular (const vector< T, 2, V > &a) noexcept |
| | Returns a vector perpendicular to argument.
|
| |
|
template<typename T , bool V> |
| static auto | eagine::math::cross (const vector< T, 3, V > &a, const vector< T, 3, V > &b) noexcept |
| | 3D vector cross product.
|
| |
|
template<typename T , int N, bool V> |
| static constexpr auto | eagine::math::magnitude (const vector< T, N, V > &a) noexcept |
| | Returns the magnitude of a vector. Same as length.
|
| |
|
template<typename T , int N, bool V> |
| static constexpr auto | eagine::math::length (const vector< T, N, V > &a) noexcept |
| | Returns the length of a vector.
|
| |
|
template<typename T , int N, bool V> |
| static auto | eagine::math::normalized (const vector< T, N, V > &a) noexcept |
| | Returns normalized argument.
|
| |
|
template<typename T , int N, bool V> |
| static constexpr auto | eagine::math::distance (const vector< T, N, V > &a, const vector< T, N, V > &b) noexcept |
| | Returns the distance between two vectors.
|
| |
Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt