|
|
using | array_type = simd<float, 4> |
|
using | value_type = array_type::value_type |
|
|
constexpr | scale2 (scale2 const &) noexcept=default |
|
constexpr | scale2 (scale2 &&) noexcept=default |
|
constexpr scale2 & | operator= (scale2 const &) noexcept=default |
|
constexpr scale2 & | operator= (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 constexpr scale2 | uniform (extent2 src_extent, extent2 dst_extent) noexcept |
| | Get a uniform-scale-transform to scale an extent to another extent.
|
|
|
constexpr friend bool | operator== (scale2 const &lhs, scale2 const &rhs) noexcept |
◆ uniform()
| constexpr scale2 hi::v1::scale2::uniform |
( |
extent2 | src_extent, |
|
|
extent2 | dst_extent ) |
|
inlinestaticnodiscardconstexprnoexcept |
Get a uniform-scale-transform to scale an extent to another extent.
- Parameters
-
| src_extent | The extent to transform |
| dst_extent | The 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: