opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
ray.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <iosfwd>
6
7namespace 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 {
15 Vector3 direction = {0.0f, 1.0f, 0.0f};
16 };
17
18 std::ostream& operator<<(std::ostream&, const Ray&);
19}
Definition custom_decoration_generator.h:5
std::ostream & operator<<(std::ostream &, const Object &)
constexpr U to(T &&value)
Definition conversion.h:56
Definition ray.h:13
Vector3 origin
Definition ray.h:14
Vector3 direction
Definition ray.h:15