MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / QuadNormalVectorCalc

Function QuadNormalVectorCalc

src/Util/Raytracer.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46FLOATPT QuadNormalVectorCalc(FLOATPT a, FLOATPT b, FLOATPT c, FLOATPT d) {
47 struct FLOATPT n1, n2, nc;
48 n1 = NormalVectorCalc(a, b, c);
49 n2 = NormalVectorCalc(a, c, d);
50 nc = SumVector(n1, n2);
51
52 return nc;
53}
54
55FLOATPT SumVector(FLOATPT Vect1, FLOATPT Vect2) {
56 struct FLOATPT SumVect;

Callers 1

VertexNormalFunction · 0.85

Calls 2

NormalVectorCalcFunction · 0.85
SumVectorFunction · 0.85

Tested by

no test coverage detected