wavelength
1.0.0
Loading...
Searching...
No Matches
ray.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
math/vector2.h
"
4
5
namespace
Rnd
{
6
14
struct
Ray
{
15
Vector2
mPoint
;
16
Vector2
mDirection
;
17
};
18
30
Vector2
Intersect
(
const
Ray
&first,
const
Ray
&second);
31
32
}
// namespace Rnd
Rnd
Definition
gfxtunnel.h:41
Rnd::Intersect
Vector2 Intersect(const Ray &first, const Ray &second)
Find where two lines in a plane cross.
Rnd::Ray
Line in a plane, given as a point on it and its direction.
Definition
ray.h:14
Rnd::Ray::mDirection
Vector2 mDirection
Definition
ray.h:16
Rnd::Ray::mPoint
Vector2 mPoint
Definition
ray.h:15
Vector2
Two-component vector, used for texture coordinates.
Definition
vector2.h:12
vector2.h
src
math
ray.h
Generated by
1.15.0