MCPcopy Create free account
hub / github.com/assaultcube/AC / intersecttriangle2

Function intersecttriangle2

source/src/weapon.cpp:404–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404inline bool intersecttriangle2(const vec &from, const vec &to, const vec &v0, const vec &v1, const vec &v2, vec *end, float *_t)
405{
406 vec dir = to; dir.sub(from); // dir = to - from
407 return intersecttriangle(from, dir, v0, v1, v2, end, _t);
408}
409
410inline bool intersectcorner(const vec &from, const vec &dir, int x, int y, int size, bool cdir, vec *end, float *_t)
411{

Callers

nothing calls this directly

Calls 1

intersecttriangleFunction · 0.85

Tested by

no test coverage detected