35#ifndef INCLUDE_GUARD_EUNOMIA_RECTANGLE_H
36#define INCLUDE_GUARD_EUNOMIA_RECTANGLE_H
95 :
x(std::min(
r.left,
r.right)),
y(std::min(
r.top,
r.bottom)),
96 width(std::max(
r.left,
r.right) -
x),
畫像バッファ基底クラステンプレート
Definition imagebuffer.h:84
長方形の別表現
Definition rect.h:84
constexpr AnotherRect(int xx, int yy, int w, int h) noexcept
Definition rect.h:91
int height
高さ
Definition rect.h:88
int width
幅
Definition rect.h:87
constexpr AnotherRect(const Rect &r) noexcept
Definition rect.h:94
int y
(上端の)Y座標
Definition rect.h:86
int x
(左端の)X座標
Definition rect.h:85
constexpr int height() const noexcept
Definition rect.h:76
int left
左端のX座標
Definition rect.h:49
constexpr Rect(int l, int t, int r, int b) noexcept
Definition rect.h:55
int right
右端のX座標
Definition rect.h:51
constexpr bool isNormalized() const noexcept
Definition rect.h:70
int bottom
下端のY座標
Definition rect.h:52
constexpr int width() const noexcept
Definition rect.h:75
void normalize() noexcept(std::is_nothrow_move_constructible< int >::value &&std::is_nothrow_move_assignable< int >::value)
Definition rect.h:59
int top
上端のY座標
Definition rect.h:50