OGLplus  (0.59.0) a C++ wrapper for rendering APIs

vector.hpp File Reference
#include "../assert.hpp"
#include "../vec_mat_traits.hpp"
#include "../vect/axis.hpp"
#include "../vect/cast.hpp"
#include "../vect/compare.hpp"
#include "../vect/esum.hpp"
#include "../vect/from.hpp"
#include "../vect/hsum.hpp"
#include "../vect/sdiv.hpp"
#include "../vect/sqrt.hpp"
#include "../vect/view.hpp"
#include "scalar.hpp"
#include <utility>

Go to the source code of this file.

Classes

struct  eagine::math::vector< T, N, V >
 Basic N-dimensional vector implementation template. More...
 

Namespaces

 eagine
 Common code is placed in this namespace.
 
 eagine::math
 Math-related code is placed in this namespace.
 

Functions

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.
 

Detailed Description

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


Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).