opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
maths
plane.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 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
{
17
Vector3
origin
{};
18
Vector3
normal
{0.0f, 1.0f, 0.0f};
19
};
20
21
std::ostream&
operator<<
(std::ostream&,
const
Plane
&);
22
}
osc::Vector< float, 3 >
osc
Definition
custom_decoration_generator.h:5
osc::operator<<
std::ostream & operator<<(std::ostream &, const Object &)
osc::to
constexpr U to(T &&value)
Definition
conversion.h:56
osc::Plane
Definition
plane.h:16
osc::Plane::normal
Vector3 normal
Definition
plane.h:18
osc::Plane::origin
Vector3 origin
Definition
plane.h:17
vector.h
Generated by
1.9.8