Leviathan  0.8.0.0
Leviathan game engine
Ray.cpp
Go to the documentation of this file.
1 // ------------------------------------ //
2 #include "Ray.h"
3 
4 #include "Plane.h"
5 
6 using namespace Leviathan;
7 // ------------------------------------ //
8 DLLEXPORT std::tuple<bool, float> Ray::CalculateIntersection(const Plane& plane) const
9 {
10  return plane.CalculateIntersection(*this);
11 }
DLLEXPORT std::tuple< bool, float > CalculateIntersection(const Ray &ray) const
Definition: Plane.cpp:8
DLLEXPORT std::tuple< bool, float > CalculateIntersection(const Plane &plane) const
Definition: Ray.cpp:8
A plane represented by a normal and a distance.
Definition: Plane.h:12
#define DLLEXPORT
Definition: Include.h:84
The access mask controls which registered functions and classes a script sees.
Definition: GameModule.h:12