opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Namespaces | Functions
rect_functions.h File Reference
#include <liboscar/maths/common_functions.h>
#include <liboscar/maths/rect.h>
#include <liboscar/maths/vector.h>
#include <concepts>
#include <functional>
#include <ranges>
Include dependency graph for rect_functions.h:

Go to the source code of this file.

Namespaces

namespace  osc
 

Functions

float osc::aspect_ratio_of (const Rect &rect)
 
constexpr Rect osc::bounding_rect_of (const Vector2 &x)
 
Rect osc::bounding_rect_of (const Rect &x, const Vector2 &y)
 
Rect osc::bounding_rect_of (const Rect &x, const Rect &y)
 
template<std::ranges::input_range R, typename Proj = std::identity>
requires std::convertible_to<typename std::projected<std::ranges::iterator_t<R>, Proj>::value_type, const Vector2&>
constexpr Rect osc::bounding_rect_of (R &&r, Proj proj={})
 
Rect osc::bounding_rect_of (const Circle &circle)
 
Rect osc::clamp (const Rect &, const Vector2 &min, const Vector2 &max)