opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
analytic_plane.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <iosfwd>
6
7namespace osc
8{
9 // a plane expressed in general form (ax + by + cz + d = 0)
10 //
11 // - useful for maths calculations
12 //
13 // - see `Plane` for a struct that's generally easier to handle in
14 // practical rendering contexts
16
17 friend constexpr bool operator==(const AnalyticPlane&, const AnalyticPlane&) = default;
18
19 float distance = 0.0f;
20 Vector3 normal = {0.0f, 1.0f, 0.0f};
21 };
22
23 std::ostream& operator<<(std::ostream&, const AnalyticPlane&);
24}
Definition custom_decoration_generator.h:5
std::ostream & operator<<(std::ostream &, const Object &)
constexpr U to(T &&value)
Definition conversion.h:56
Definition analytic_plane.h:15
friend constexpr bool operator==(const AnalyticPlane &, const AnalyticPlane &)=default
Vector3 normal
Definition analytic_plane.h:20
float distance
Definition analytic_plane.h:19