opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
disc.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <iosfwd>
6
7namespace 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
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}
Definition custom_decoration_generator.h:5
std::ostream & operator<<(std::ostream &, const Object &)
constexpr U to(T &&value)
Definition conversion.h:56
Definition disc.h:12
Vector3 origin
Definition disc.h:15
Vector3 normal
Definition disc.h:16
friend bool operator==(const Disc &, const Disc &)=default
float radius
Definition disc.h:17