#include <rectangle.hpp>
template<typename T>
class std::math::rectangle< T >
◆ pointer
◆ self_type
◆ value_type
◆ rectangle() [1/3]
value_type width
Definition: rectangle.hpp:55
value_type height
Definition: rectangle.hpp:56
value_type x
Definition: rectangle.hpp:53
value_type y
Definition: rectangle.hpp:54
◆ rectangle() [2/3]
value_type width
Definition: rectangle.hpp:55
value_type height
Definition: rectangle.hpp:56
value_type x
Definition: rectangle.hpp:53
value_type y
Definition: rectangle.hpp:54
◆ rectangle() [3/3]
value_type width
Definition: rectangle.hpp:55
vector2< value_type > size()
Definition: rectangle.hpp:85
value_type height
Definition: rectangle.hpp:56
value_type x
Definition: rectangle.hpp:53
value_type y
Definition: rectangle.hpp:54
◆ bottom()
value_type height
Definition: rectangle.hpp:56
value_type y
Definition: rectangle.hpp:54
◆ center()
value_type width
Definition: rectangle.hpp:55
value_type height
Definition: rectangle.hpp:56
value_type x
Definition: rectangle.hpp:53
value_type y
Definition: rectangle.hpp:54
◆ contains()
98 return r.left() >=
left() && r.right() <=
right() &&
99 r.top() >=
top() && r.bottom() <=
bottom();
const value_type & top()
Definition: rectangle.hpp:75
const value_type & right()
Definition: rectangle.hpp:82
const value_type & left()
Definition: rectangle.hpp:78
const value_type & bottom()
Definition: rectangle.hpp:81
◆ inflate()
90 width += leftRight * 2;
value_type width
Definition: rectangle.hpp:55
value_type height
Definition: rectangle.hpp:56
value_type x
Definition: rectangle.hpp:53
value_type y
Definition: rectangle.hpp:54
◆ intersect()
103 int x = std::_max<value_type> (r1.x, r2.x);
104 int y = std::_max<value_type> (r1.y, r2.y);
105 int w = std::_min<value_type> (r1.right(), r2.right()) - x;
106 int h = std::_min<value_type> (r1.bottom(), r2.bottom()) - y;
107 return rectangle<value_type>(
x,
y,w,h);
value_type x
Definition: rectangle.hpp:53
value_type y
Definition: rectangle.hpp:54
◆ intersects()
111 int w = std::_min<value_type> (r.right(),
right()) - std::_max<value_type> (r.x,
x);
112 int h = std::_min<value_type> (r.bottom(),
bottom()) - std::_max<value_type> (r.y,
y);
113 return w > 0 && h > 0;
const value_type & right()
Definition: rectangle.hpp:82
const value_type & bottom()
Definition: rectangle.hpp:81
value_type x
Definition: rectangle.hpp:53
value_type y
Definition: rectangle.hpp:54
◆ left() [1/2]
value_type x
Definition: rectangle.hpp:53
◆ left() [2/2]
value_type x
Definition: rectangle.hpp:53
◆ offset()
value_type x
Definition: rectangle.hpp:53
value_type y
Definition: rectangle.hpp:54
◆ right()
value_type width
Definition: rectangle.hpp:55
value_type x
Definition: rectangle.hpp:53
◆ size()
value_type width
Definition: rectangle.hpp:55
value_type height
Definition: rectangle.hpp:56
◆ to_string()
vector2< T > position
Definition: rectangle.hpp:59
vector2< value_type > size()
Definition: rectangle.hpp:85
size_t frmstring(basic_string< E, TAllocator, TStorage > &dest, const char *format, va_list arg)
Definition: string.hpp:99
◆ top() [1/2]
value_type y
Definition: rectangle.hpp:54
◆ top() [2/2]
value_type y
Definition: rectangle.hpp:54
◆ @24
◆ height
◆ position
◆ size
◆ width
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: