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

Public Types

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

Public Member Functions

constexpr scale3 (scale3 const &) noexcept=default
 
constexpr scale3 (scale3 &&) noexcept=default
 
constexpr scale3operator= (scale3 const &) noexcept=default
 
constexpr scale3operator= (scale3 &&) noexcept=default
 
constexpr scale3 (scale2 const &other) noexcept
 
constexpr operator scale2 () const noexcept
 
constexpr operator f32x4 () const noexcept
 
constexpr scale3 (f32x4 const &v) noexcept
 
constexpr scale3 (vector3 const &v) noexcept
 
constexpr scale3 (float value) noexcept
 
constexpr scale3 (float x, float y, float z=1.0f) noexcept
 
constexpr bool holds_invariant () const noexcept
 
constexpr float & x () noexcept
 
constexpr float & y () noexcept
 
constexpr float & z () noexcept
 
constexpr float x () const noexcept
 
constexpr float y () const noexcept
 
constexpr float z () const noexcept
 

Static Public Member Functions

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

Friends

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

Member Function Documentation

◆ uniform()

static constexpr scale3 hi::v1::scale3::uniform ( extent3 src_extent,
extent3 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: