opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
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 point-normal form
10 //
11 // - useful when you want to control where a limited-size plane should
12 // actually be drawn in 3D
13 //
14 // - see `AnalyticPlane` for a struct that's better in maths functions, because
15 // it represents the general equation of a plane (i.e. ax + by + cz + d = 0)
16 struct Plane final {
18 Vector3 normal{0.0f, 1.0f, 0.0f};
19 };
20
21 std::ostream& operator<<(std::ostream&, const Plane&);
22}
Definition custom_decoration_generator.h:5
std::ostream & operator<<(std::ostream &, const Object &)
constexpr U to(T &&value)
Definition conversion.h:56
Definition plane.h:16
Vector3 normal
Definition plane.h:18
Vector3 origin
Definition plane.h:17