rodecomp/Source/Utility/RayTriangle.h
2026-10-24 00:35:19 +00:00

16 lines
417 B
C

#ifndef RAGNAROK_SOURCE_UTILITY_RAYTRIANGLE_H
#define RAGNAROK_SOURCE_UTILITY_RAYTRIANGLE_H
// Six floats: origin xyz followed by direction xyz. Outputs are written only
// as each original rejection stage is passed; signed distance is not clipped.
bool IntersectRayTriangle(
const float* ray,
const float* first,
const float* second,
const float* third,
float& u,
float& v,
float& distance
);
#endif