opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
maths
sphere_functions.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
liboscar/maths/sphere.h
>
4
#include <
liboscar/maths/vector.h
>
5
6
#include <optional>
7
#include <span>
8
9
namespace
osc
{
struct
AABB; }
10
11
namespace
osc
12
{
13
// returns a `Sphere` that loosely bounds the given `Vector3`s
14
std::optional<Sphere>
bounding_sphere_of
(std::span<const Vector3>);
15
16
// returns a `Sphere` that loosely bounds the given `AABB`
17
Sphere
bounding_sphere_of
(
const
AABB
&);
18
}
osc
Definition
custom_decoration_generator.h:5
osc::bounding_sphere_of
std::optional< Sphere > bounding_sphere_of(const Mesh &)
sphere.h
osc::AABB
Definition
aabb.h:14
osc::Sphere
Definition
sphere.h:9
vector.h
Generated by
1.9.8