11#include "../SIMD/SIMD.hpp"
12#include "../geometry/geometry.hpp"
13#include "../macros.hpp"
19hi_export_module(hikogui.image.sfloat_rg32);
28 alignas(
sizeof(float) * 2)
39 constexpr sfloat_rg32(
float x,
float y) noexcept : v{x, y} {}
41 explicit sfloat_rg32(f32x4
const &rhs) noexcept : v{rhs.r(), rhs.g()} {}
45 v = {rhs.r(), rhs.g()};
49 explicit operator f32x4()
const noexcept
51 return f32x4{std::get<0>(v), std::get<1>(v), 0.0f, 0.0f};
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
A high-level geometric point Part of the high-level vec, point, mat and color types.
Definition point2.hpp:28
2 x float32 pixel format.
Definition sfloat_rg32.hpp:27