MCPcopy Create free account
hub / github.com/crownengine/crown / ray_triangle_intersection

Function ray_triangle_intersection

src/core/math/intersection.cpp:146–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146f32 ray_triangle_intersection(const Vector3 &from, const Vector3 &dir, const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
147{
148 const Vector3 verts[] = { v0, v1, v2 };
149 const u16 inds[] = { 0, 1, 2 };
150 return ray_mesh_intersection(from, dir, MATRIX4X4_IDENTITY, verts, sizeof(Vector3), inds, 3);
151}
152
153f32 ray_mesh_intersection(const Vector3 &from, const Vector3 &dir, const Matrix4x4 &tm, const void *vertices, u32 stride, const u16 *indices, u32 num)
154{

Callers 1

load_apiFunction · 0.85

Calls 1

ray_mesh_intersectionFunction · 0.85

Tested by

no test coverage detected