HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends
v1::geo::translate< D > Class Template Reference

Public Member Functions

constexpr translate (translate const &) noexcept=default
 
constexpr translate (translate &&) noexcept=default
 
constexpr translateoperator= (translate const &) noexcept=default
 
constexpr translateoperator= (translate &&) noexcept=default
 
constexpr operator matrix< 2 > () const noexcept
 
constexpr operator matrix< 3 > () const noexcept
 
constexpr translate (identity const &) noexcept
 
constexpr operator f32x4 () const noexcept
 
constexpr translate (f32x4 const &other) noexcept
 
constexpr translate (aarectangle const &other) noexcept
 
constexpr translate (aarectangle const &other, float z) noexcept
 
template<int E>
requires (E < D)
constexpr translate (translate< E > const &other) noexcept
 
template<int E>
requires (E <= D)
constexpr translate (vector< E > const &other) noexcept
 
template<int E>
requires (E <= D)
constexpr translate (point< E > const &other) noexcept
 
constexpr translate (float x, float y) noexcept
 
constexpr translate (float x, float y, float z=0.0) noexcept
 
template<int E>
constexpr vector< E > operator* (vector< E > const &rhs) const noexcept
 
template<int E>
constexpr point< std::max(D, E)> operator* (point< E > const &rhs) const noexcept
 
constexpr aarectangle operator* (aarectangle const &rhs) const noexcept
 
constexpr rectangle operator* (aarectangle const &rhs) const noexcept
 
constexpr rectangle operator* (rectangle const &rhs) const noexcept
 
constexpr quad operator* (quad const &rhs) const noexcept
 
constexpr circle operator* (circle const &rhs) const noexcept
 
constexpr line_segment operator* (line_segment const &rhs) const noexcept
 
constexpr translate operator* (identity const &) const noexcept
 
template<int E>
constexpr auto operator* (matrix< E > const &rhs) const noexcept
 
template<int E>
constexpr auto operator* (rotate< E > const &rhs) const noexcept
 
template<int E>
constexpr auto operator* (translate< E > const &rhs) const noexcept
 
template<int E>
constexpr bool operator== (translate< E > const &rhs) const noexcept
 
constexpr translate operator~ () const noexcept
 
constexpr bool holds_invariant () const noexcept
 

Static Public Member Functions

static constexpr translate align (aarectangle src_rectangle, aarectangle dst_rectangle, alignment alignment) noexcept
 Align a rectangle within another rectangle.
 

Friends

constexpr translate round (translate const &rhs) noexcept
 

Member Function Documentation

◆ align()

template<int D>
static constexpr translate v1::geo::translate< D >::align ( aarectangle src_rectangle,
aarectangle dst_rectangle,
alignment alignment )
inlinestaticconstexprnoexcept

Align a rectangle within another rectangle.

Parameters
src_rectangleThe rectangle to translate into the dst_rectangle
dst_rectangleThe destination rectangle.
alignmentHow 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: