tiny.geometry.RayHit
Defined in tiny.geometry.
A ray meeting a mesh triangle: the ray parameter, the barycentric weights of vertices b and c, and the triangle index in the mesh.
API (4)
Fields and members
Public fields and members.
Source
Source: lib/geometry/src/mesh.zig:145
zig
/// A ray meeting a mesh triangle: the ray parameter, the barycentric weights/// of vertices `b` and `c`, and the triangle index in the mesh.pub const RayHit = struct { t: f32, u: f32, v: f32, triangle: u32,};Source: lib/geometry/src/root.zig:23
zig
pub const RayHit = mesh.RayHit;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 4 |
| Version | 26.7.0 |
| Revision | daab053ee433 |