7#include "../macros.hpp"
8#include <hikocpu/hikocpu.hpp>
13hi_export_module(hikogui.geometry : rotate2);
15hi_export
namespace hi {
inline namespace v1 {
20 using value_type = array_type::value_type;
26 constexpr rotate2() noexcept : _v(0.0f, 0.0f, 1.0f, 0.0f) {}
28 [[nodiscard]]
rotate2(
float angle) noexcept : _v()
30 auto const half_angle = angle * 0.5f;
34 _v =
f32x4{0.0f, 0.0f, S, C};
37 [[nodiscard]]
constexpr explicit operator array_type()
const noexcept
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
Definition simd_intf.hpp:18
Definition rotate2.hpp:17