HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Friends
hi::v1::scale2 Class Reference

Public Types

using array_type = simd<float, 4>
 
using value_type = array_type::value_type
 

Public Member Functions

constexpr scale2 (scale2 const &) noexcept=default
 
constexpr scale2 (scale2 &&) noexcept=default
 
constexpr scale2operator= (scale2 const &) noexcept=default
 
constexpr scale2operator= (scale2 &&) noexcept=default
 
constexpr operator f32x4 () const noexcept
 
constexpr scale2 (f32x4 const &v) noexcept
 
constexpr scale2 (vector2 const &v) noexcept
 
constexpr scale2 (float value) noexcept
 
constexpr scale2 (float x, float y) noexcept
 
constexpr bool holds_invariant () const noexcept
 
constexpr float & x () noexcept
 
constexpr float & y () noexcept
 
constexpr float x () const noexcept
 
constexpr float y () const noexcept
 

Static Public Member Functions

static constexpr scale2 uniform (extent2 src_extent, extent2 dst_extent) noexcept
 Get a uniform-scale-transform to scale an extent to another extent.
 

Friends

constexpr friend bool operator== (scale2 const &lhs, scale2 const &rhs) noexcept
 

Member Function Documentation

◆ uniform()

static constexpr scale2 hi::v1::scale2::uniform ( extent2 src_extent,
extent2 dst_extent )
inlinestaticconstexprnoexcept

Get a uniform-scale-transform to scale an extent to another extent.

Parameters
src_extentThe extent to transform
dst_extentThe extent to scale to.
Returns
a scale to transform the src_extent to the dst_extent.

The documentation for this class was generated from the following file: