Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/math/include/ray.hpp

12 lines
218 B
C++
Raw Normal View History

2021-04-20 11:53:49 -04:00
#pragma once
2021-05-12 09:56:44 -04:00
#include "vector.hpp"
2021-04-20 11:53:49 -04:00
2021-05-12 09:56:44 -04:00
namespace prism {
struct ray {
float3 origin, direction;
float t = 0.0f;
};
float closest_distance_between_lines(ray& l1, ray& l2);
} // namespace prism