Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
Ray.h File Reference
#include <glm/vec3.hpp>
Include dependency graph for Ray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Math::Ray
 Represents a ray in 3D space. More...
 

Namespaces

namespace  Math
 Mathematical and geometric utility functions.
 

Data Structure Documentation

◆ Math::Ray

struct Math::Ray

Represents a ray in 3D space.

Used for mouse picking, collision detection, and line-of-sight tests. The ray is defined parametrically as: \(P(t) = \texttt{origin} + t \cdot \texttt{dir}\)

Definition at line 11 of file Ray.h.

Data Fields
vec3 dir Direction vector (should be normalized)
vec3 origin Starting point of the ray in world space.