#include "../valid_if/nonnegative.hpp"
#include "../valid_if/positive.hpp"
#include "functions.hpp"
#include "primitives.hpp"
#include "vector.hpp"
#include <utility>
Go to the source code of this file.
Namespaces | |
eagine | |
Common code is placed in this namespace. | |
eagine::math | |
Math-related code is placed in this namespace. | |
Functions | |
template<typename T , bool V> | |
static constexpr auto | eagine::math::line_sphere_intersection (const line< T, V > &ray, const sphere< T, V > &sph) noexcept -> std::pair< optionally_valid< vector< T, 3, V >>, optionally_valid< vector< T, 3, V >>> |
Finds line-sphere intersection points. More... | |
template<typename T , bool V> | |
static constexpr auto | eagine::math::nearest_line_sphere_intersection (const line< T, V > &ray, const sphere< T, V > &sph) noexcept -> optionally_valid< vector< T, 3, V >> |
Finds nearest line-sphere intersection point. More... | |
template<typename T , bool V> | |
static auto | eagine::math::line_triangle_intersection (const line< T, V > &ray, const triangle< T, V > &tri) noexcept -> optionally_valid< vector< T, 3, V >> |
Finds line-triangle intersection point. | |
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