MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / lineCheckNoBackface

Method lineCheckNoBackface

Source/Graphics/model.cpp:1863–1865  ·  view source on GitHub ↗

Check a line against the model for collision against front face only

Source from the content-addressed store, hash-verified

1861
1862// Check a line against the model for collision against front face only
1863int Model::lineCheckNoBackface(const vec3 &p1, const vec3 &p2, vec3 *p, vec3 *normal) const {
1864 return lineCheck(p1, p2, p, normal, false);
1865}
1866
1867float StaticCalcAverageTriangleEdge(const std::vector<unsigned> &faces, const std::vector<float> &vertices) {
1868 float total_vert = 0.0f;

Callers 3

lineCheckMethod · 0.80
GetUVAtPointMethod · 0.80
lineCheckMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected