Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
Ray.h
Go to the documentation of this file.
1#pragma once
2#include <glm/vec3.hpp>
3
4namespace Math {
11 struct Ray {
12 glm::vec3 origin;
13 glm::vec3 dir;
14 };
15}
Mathematical and geometric utility functions.
glm::vec3 origin
Starting point of the ray in world space.
Definition Ray.h:12
glm::vec3 dir
Direction vector (should be normalized)
Definition Ray.h:13
Represents a ray in 3D space.
Definition Ray.h:11