9#include "../macros.hpp"
14hi_export_module(hikogui.geometry : scale2);
16hi_export
namespace hi {
inline namespace v1 {
21 using value_type = array_type::value_type;
25 constexpr scale2& operator=(
scale2 const&)
noexcept =
default;
26 constexpr scale2& operator=(
scale2&&)
noexcept =
default;
35 hi_axiom(holds_invariant());
60 return equal(lhs._v, rhs._v);
65 return _v.z() == 1.0f
and _v.w() == 1.0f;
92[[
nodiscard]]
constexpr scale2 operator/(extent2
const& lhs, extent2
const& rhs)
noexcept
94 hi_axiom(rhs.width() > 0.0f
and rhs.height() > 0.0f);
95 return scale2{f32x4{lhs}.xy11() / f32x4{rhs}.xy11()};
Defined the geo::extent, extent2 and extent3 types.
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
A high-level geometric extent.
Definition extent2.hpp:32
static constexpr scale2 uniform(extent2 src_extent, extent2 dst_extent) noexcept
Get a uniform-scale-transform to scale an extent to another extent.
Definition scale2.hpp:51
A high-level geometric vector Part of the high-level vector, point, mat and color types.
Definition vector2.hpp:26
Definition simd_intf.hpp:18