opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
maths
disc.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
// a region in a 3D plane bounded by a circle
10
//
11
// - see `Circle` for the 2D equivalent of this
12
struct
Disc
final {
13
friend
bool
operator==
(
const
Disc
&,
const
Disc
&) =
default
;
14
15
Vector3
origin
{};
16
Vector3
normal
= {0.0f, 1.0f, 0.0f};
17
float
radius
= 1.0f;
18
};
19
20
std::ostream&
operator<<
(std::ostream&,
const
Disc
&);
21
}
osc::Vector< float, 3 >
osc
Definition
custom_decoration_generator.h:5
osc::operator<<
std::ostream & operator<<(std::ostream &, const Object &)
osc::Disc
Definition
disc.h:12
osc::Disc::origin
Vector3 origin
Definition
disc.h:15
osc::Disc::normal
Vector3 normal
Definition
disc.h:16
osc::Disc::operator==
friend bool operator==(const Disc &, const Disc &)=default
osc::Disc::radius
float radius
Definition
disc.h:17
vector.h
Generated by
1.9.8