math: Improve triangleIntersect doc comment

This commit is contained in:
Joel D. Schüller 2023-10-07 16:37:23 +02:00 committed by Stephen Gutekanst
parent efe9d3d5d2
commit fc4c3d06a3

View file

@ -59,7 +59,9 @@ pub fn Ray(comptime Vec3P: type) type {
/// Check for collision of a ray and a triangle in 3D space. /// Check for collision of a ray and a triangle in 3D space.
/// Triangle winding, which determines front- and backface of /// Triangle winding, which determines front- and backface of
/// the given triangle, matters if backface culling is to be /// the given triangle, matters if backface culling is to be
/// enabled. Without backface culling it does not matter. /// enabled. Without backface culling it does not matter for
/// hit detection, however the barycentric coordinates will
/// be negative in case of a backface hit.
/// On hit, will return a RayHit which contains distance t /// On hit, will return a RayHit which contains distance t
/// and barycentric coordinates. /// and barycentric coordinates.
pub inline fn triangleIntersect( pub inline fn triangleIntersect(