|
Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
|
#include <glm/vec3.hpp>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. | |
| 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}\)
| Data Fields | ||
|---|---|---|
| vec3 | dir | Direction vector (should be normalized) |
| vec3 | origin | Starting point of the ray in world space. |