11#include "../macros.hpp"
12#include <hikocpu/hikocpu.hpp>
17hi_export_module(hikogui.geometry : corner_radii);
19hi_export
namespace hi {
28 using array_type =
f32x4;
96 [[
nodiscard]]
constexpr friend corner_radii operator-(corner_radii
const &lhs,
float rhs)
noexcept
98 return corner_radii{f32x4{lhs} - array_type::broadcast(rhs)};
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
The 4 radii of the corners of a quad or rectangle.
Definition corner_radii.hpp:26
constexpr friend float get(corner_radii const &rhs) noexcept
Get the corner radius by index.
Definition corner_radii.hpp:76
constexpr float operator[](std::size_t i) const noexcept
Get the corner radius by index.
Definition corner_radii.hpp:86
constexpr corner_radii(f32x4 v) noexcept
Construct a corner_radii from a simd.
Definition corner_radii.hpp:43