MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / vec3

Class vec3

engine/3rdparty/tinyobjloader/examples/viewer/viewer.cc:211–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209namespace // Local utility functions
210{
211struct vec3 {
212 float v[3];
213 vec3() {
214 v[0] = 0.0f;
215 v[1] = 0.0f;
216 v[2] = 0.0f;
217 }
218};
219
220void normalizeVector(vec3 &v) {
221 float len2 = v.v[0] * v.v[0] + v.v[1] * v.v[1] + v.v[2] * v.v[2];

Callers 2

F_SchlickRFunction · 0.85
BRDFFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected