MCPcopy Create free account
hub / github.com/WheretIB/nullc / length

Function length

tests/TestMembers.cpp:9–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7{\r\n\
8float x, y, z;\r\n\
9void vec3(float xx, float yy, float zz){ x = xx; y = yy; z = zz; }\r\n\
10\r\n\
11float length(){ return sqrt(x*x+y*y+z*z); }\r\n\
12float dot(vec3 ref v){ return x*v.x+y*v.y+z*v.z; }\r\n\
13\r\n\
14float w;\r\n\

Callers 1

TestPointers.cppFile · 0.85

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected