Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
Ray.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4
5namespace shkyera {
6
7struct Ray {
8 glm::vec3 origin;
9 glm::vec3 direction;
10
15 glm::vec3 at(float t) const;
16
24 float project(const Ray& other) const;
25
33 float project(const glm::vec3& point) const;
34};
35
36} // namespace shkyera
Definition Asset.hpp:6
Definition Clock.hpp:9
Definition Ray.hpp:7
glm::vec3 at(float t) const
Definition Ray.cpp:8
glm::vec3 origin
Definition Ray.hpp:8
float project(const Ray &other) const
Definition Ray.cpp:12
glm::vec3 direction
Definition Ray.hpp:9