opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
maths
aabb.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
liboscar/maths/vector.h
>
4
5
#include <iosfwd>
6
7
namespace
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
18
Vector3
min
{};
19
Vector3
max
{};
20
};
21
22
std::ostream&
operator<<
(std::ostream&,
const
AABB
&);
23
}
osc::Vector< float, 3 >
osc
Definition
custom_decoration_generator.h:5
osc::operator<<
std::ostream & operator<<(std::ostream &, const Object &)
osc::AABB
Definition
aabb.h:14
osc::AABB::operator==
friend bool operator==(const AABB &, const AABB &)=default
osc::AABB::min
Vector3 min
Definition
aabb.h:18
osc::AABB::max
Vector3 max
Definition
aabb.h:19
vector.h
Generated by
1.9.8