opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
maths
ray.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
// an infinitely long object with no width with an origin position and direction in 3D space
10
//
11
// - see `LineSegment` for the finite version of this
12
// - sometimes called `Ray` in the literature
13
struct
Ray
final
{
14
Vector3
origin
{};
15
Vector3
direction
= {0.0f, 1.0f, 0.0f};
16
};
17
18
std::ostream&
operator<<
(std::ostream&,
const
Ray
&);
19
}
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::Ray
Definition
ray.h:13
osc::Ray::origin
Vector3 origin
Definition
ray.h:14
osc::Ray::direction
Vector3 direction
Definition
ray.h:15
vector.h
Generated by
1.9.8