|
using | array_type = simd<float, 4> |
|
using | value_type = array_type::value_type |
|
|
constexpr | translate2 (translate2 const &) noexcept=default |
|
constexpr | translate2 (translate2 &&) noexcept=default |
|
constexpr translate2 & | operator= (translate2 const &) noexcept=default |
|
constexpr translate2 & | operator= (translate2 &&) noexcept=default |
|
constexpr | operator array_type () const noexcept |
|
constexpr | translate2 (array_type const &other) noexcept |
|
constexpr | translate2 (aarectangle const &other) noexcept |
|
constexpr | translate2 (aarectangle const &other, float z) noexcept |
|
constexpr | translate2 (vector2 const &other) noexcept |
|
constexpr | translate2 (point2 const &other) noexcept |
|
constexpr | translate2 (float x, float y) noexcept |
|
constexpr float | x () const noexcept |
|
constexpr float | y () const noexcept |
|
constexpr float & | x () noexcept |
|
constexpr float & | y () noexcept |
|
constexpr translate2 | operator~ () const noexcept |
|
constexpr bool | holds_invariant () const noexcept |
|
◆ align()
|
inlinestaticconstexprnoexcept |
Align a rectangle within another rectangle.
- Parameters
-
src_rectangle | The rectangle to translate into the dst_rectangle |
dst_rectangle | The destination rectangle. |
alignment | How the source rectangle should be aligned inside the destination rectangle. |
- Returns
- Translation to move the src_rectangle into the dst_rectangle.
The documentation for this class was generated from the following file: