cangine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
rectangle.hpp File Reference
#include <cmath>
#include <array>
#include <cfloat>
#include "../types/vector2.hpp"
#include "../types/vector3.hpp"
#include "../util/color.hpp"
#include "../engine/components/transform_component.hpp"
Include dependency graph for rectangle.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cangine::Rectangle
 An axis-aligned rectangle with a position, size and color. More...
 

Namespaces

namespace  cangine
 

Functions

constexpr bool cangine::operator>> (const Vector2 &vec, const Rectangle &rect) noexcept
 Point-in-rectangle test (axis-aligned, untransformed).
 
constexpr bool cangine::operator>> (const Rectangle &rect, const Vector2 &vec) noexcept
 Point-in-rectangle test with reversed operand order.
 
constexpr bool cangine::operator>> (const Rectangle &r1, const Rectangle &r2) noexcept
 Axis-aligned overlap test between two rectangles.