31 [[nodiscard]]
constexpr point3 origin()
const noexcept
36 [[nodiscard]]
constexpr vector3 direction()
const noexcept
41 [[nodiscard]]
friend float hypot(
line_segment const &rhs)
noexcept
46 template<std::
size_t I>
47 [[nodiscard]]
constexpr friend point3 get(
line_segment const &rhs)
noexcept
49 if constexpr (I == 0) {
51 }
else if constexpr (I == 1) {
52 return rhs._p + rhs._v;
58 [[nodiscard]]
constexpr friend point3 midpoint(
line_segment const &rhs)
noexcept
60 return rhs._p + rhs._v * 0.5f;
#define hi_static_no_default(...)
This part of the code should not be reachable, unless a programming bug.
Definition assert.hpp:323
DOXYGEN BUG.
Definition algorithm.hpp:13
geometry/margins.hpp
Definition cache.hpp:11
Line segment.
Definition line_segment.hpp:20
A high-level geometric vector Part of the high-level vector, point, mat and color types.
Definition vector3.hpp:19