|
|
template<int I> |
| constexpr friend point2 | get (axis_aligned_rectangle const &rhs) noexcept |
| |
| constexpr friend point2 | midpoint (axis_aligned_rectangle const &rhs) noexcept |
| | Get the center of the rectangle.
|
| |
| constexpr axis_aligned_rectangle | align (axis_aligned_rectangle haystack, extent2 needle, alignment alignment) noexcept |
| | Align a rectangle within another rectangle.
|
| |
| constexpr axis_aligned_rectangle | align (axis_aligned_rectangle haystack, axis_aligned_rectangle needle, alignment alignment) noexcept |
| | Align a rectangle within another rectangle.
|
| |
|
constexpr bool | operator== (axis_aligned_rectangle const &lhs, axis_aligned_rectangle const &rhs) noexcept |
| |
|
constexpr bool | overlaps (axis_aligned_rectangle const &lhs, axis_aligned_rectangle const &rhs) noexcept |
| |
|
constexpr axis_aligned_rectangle | operator| (axis_aligned_rectangle const &lhs, axis_aligned_rectangle const &rhs) noexcept |
| |
|
constexpr axis_aligned_rectangle | operator| (axis_aligned_rectangle const &lhs, point2 const &rhs) noexcept |
| |
| constexpr axis_aligned_rectangle | operator* (axis_aligned_rectangle const &lhs, float rhs) noexcept |
| | Expand the rectangle for the same amount in all directions.
|
| |
| constexpr axis_aligned_rectangle | operator+ (axis_aligned_rectangle const &lhs, float rhs) noexcept |
| | Expand the rectangle for the same amount in all directions.
|
| |
| constexpr axis_aligned_rectangle | operator- (axis_aligned_rectangle const &lhs, float rhs) noexcept |
| | Shrink the rectangle for the same amount in all directions.
|
| |
|
constexpr axis_aligned_rectangle | round (axis_aligned_rectangle const &rhs) noexcept |
| |
| constexpr axis_aligned_rectangle | ceil (axis_aligned_rectangle const &rhs) noexcept |
| | Round rectangle by expanding to pixel edge.
|
| |
| constexpr axis_aligned_rectangle | ceil (axis_aligned_rectangle const &lhs, extent2 const &rhs) noexcept |
| | Round rectangle by expanding to a certain granularity.
|
| |
| constexpr axis_aligned_rectangle | floor (axis_aligned_rectangle const &rhs) noexcept |
| | Round rectangle by shrinking to pixel edge.
|
| |
|
constexpr axis_aligned_rectangle | bounding_rectangle (axis_aligned_rectangle const &rhs) noexcept |
| |
| constexpr axis_aligned_rectangle | intersect (axis_aligned_rectangle const &lhs, axis_aligned_rectangle const &rhs) noexcept |
| | Return the overlapping part of two rectangles.
|
| |
| axis_aligned_rectangle | fit (axis_aligned_rectangle const &bounds, axis_aligned_rectangle const &rectangle) noexcept |
| | Make a rectangle fit inside bounds.
|
| |
|
constexpr friend float | distance (axis_aligned_rectangle const &lhs, point2 const &rhs) noexcept |
| |
Class which represents an axis-aligned rectangle.