#include <hikogui/geometry/corner_radii.hpp>
|
|
constexpr | corner_radii (corner_radii const &) noexcept=default |
|
constexpr | corner_radii (corner_radii &&) noexcept=default |
|
constexpr corner_radii & | operator= (corner_radii const &) noexcept=default |
|
constexpr corner_radii & | operator= (corner_radii &&) noexcept=default |
|
constexpr | corner_radii (float radius) noexcept |
|
constexpr | corner_radii (float lb, float rb, float lt, float rt) noexcept |
| constexpr | corner_radii (f32x4 v) noexcept |
| | Construct a corner_radii from a simd.
|
|
constexpr | operator f32x4 () const noexcept |
|
constexpr float | left_bottom () const noexcept |
|
constexpr float | right_bottom () const noexcept |
|
constexpr float | left_top () const noexcept |
|
constexpr float | right_top () const noexcept |
| constexpr float | operator[] (std::size_t i) const noexcept |
| | Get the corner radius by index.
|
|
| template<int I> |
| constexpr friend float | get (corner_radii const &rhs) noexcept |
| | Get the corner radius by index.
|
|
constexpr friend corner_radii | operator+ (corner_radii const &lhs, float rhs) noexcept |
|
constexpr friend corner_radii | operator- (corner_radii const &lhs, float rhs) noexcept |
The 4 radii of the corners of a quad or rectangle.
◆ corner_radii()
| hi::v1::corner_radii::corner_radii |
( |
f32x4 | v | ) |
|
|
inlineexplicitnodiscardconstexprnoexcept |
Construct a corner_radii from a simd.
- Parameters
-
| v | The 4 radii, x=left-bottom, y=right-bottom, z=left-top, w=right-top. |
◆ operator[]()
| float hi::v1::corner_radii::operator[] |
( |
std::size_t | i | ) |
const |
|
inlinenodiscardconstexprnoexcept |
Get the corner radius by index.
- Parameters
-
| i | The index; 0=left-bottom, 1=right-bottom, 2=left-top, 3=right-top. |
- Returns
- The corner radius.
◆ get
template<int I>
| friend float get |
( |
corner_radii const & | rhs | ) |
|
|
friend |
Get the corner radius by index.
- Template Parameters
-
| I | The index; 0=left-bottom, 1=right-bottom, 2=left-top, 3=right-top. |
- Returns
- The corner radius.
The documentation for this class was generated from the following file: