11#include "../SIMD/module.hpp"
12#include "../geometry/module.hpp"
13#include "../macros.hpp"
23 alignas(
sizeof(float) * 2)
34 constexpr sfloat_rg32(
float x,
float y) noexcept : v{x, y} {}
36 explicit sfloat_rg32(f32x4
const &rhs) noexcept : v{rhs.r(), rhs.g()} {}
40 v = {rhs.r(), rhs.g()};
44 explicit operator f32x4()
const noexcept
46 return f32x4{std::get<0>(v), std::get<1>(v), 0.0f, 0.0f};
DOXYGEN BUG.
Definition algorithm.hpp:16
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
A high-level geometric point Part of the high-level vec, point, mat and color types.
Definition point2.hpp:26
2 x float32 pixel format.
Definition sfloat_rg32.hpp:22