MCPcopy Create free account
hub / github.com/RenderKit/embree / quad_index2

Function quad_index2

tutorials/common/scenegraph/scenegraph.cpp:1230–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228 }
1229
1230 std::pair<int,int> quad_index2(int p, int a0, int a1, int b0, int b1)
1231 {
1232 if (b0 == a0) return std::make_pair(p-1,b1);
1233 else if (b0 == a1) return std::make_pair(p+0,b1);
1234 else if (b1 == a0) return std::make_pair(p-1,b0);
1235 else if (b1 == a1) return std::make_pair(p+0,b0);
1236 else return std::make_pair(0,-1);
1237 }
1238
1239 std::pair<int,int> quad_index3(int a0, int a1, int a2, int b0, int b1, int b2)
1240 {

Callers 1

quad_index3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected