13#include "../macros.hpp"
18hi_export_module(hikogui.geometry : line_segment);
20hi_export
namespace hi {
37 [[
nodiscard]]
constexpr point3 origin()
const noexcept
52 template<std::
size_t I>
55 if constexpr (I == 0) {
57 }
else if constexpr (I == 1) {
58 return rhs._p + rhs._v;
60 hi_static_no_default();
66 return rhs._p + rhs._v * 0.5f;
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
The HikoGUI namespace.
Definition recursive_iterator.hpp:15
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
Line segment.
Definition line_segment.hpp:26
A high-level geometric vector Part of the high-level vector, point, mat and color types.
Definition vector3.hpp:26