opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
aabb.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <iosfwd>
6
7namespace osc
8{
9 // Represents a 3D axis-aligned bounding box in a caller-defined
10 // coordinate system.
11 //
12 // The 1D equivalent to an `AABB` is a `ClosedInterval`. The 2D equivalent
13 // is a `Rect`.
14 struct AABB final {
15
16 friend bool operator==(const AABB&, const AABB&) = default;
17
20 };
21
22 std::ostream& operator<<(std::ostream&, const AABB&);
23}
Definition custom_decoration_generator.h:5
std::ostream & operator<<(std::ostream &, const Object &)
constexpr U to(T &&value)
Definition conversion.h:56
Definition aabb.h:14
friend bool operator==(const AABB &, const AABB &)=default
Vector3 min
Definition aabb.h:18
Vector3 max
Definition aabb.h:19