MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / Vec3

Class Vec3

test/embind/embind_benchmark.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62class Vec3 {
63public:
64 Vec3():x(0),y(0),z(0) {}
65 Vec3(float x_, float y_, float z_):x(x_),y(y_),z(z_) {}
66 float x,y,z;
67};
68
69Vec3 add(const Vec3 &lhs, const Vec3 &rhs) { return Vec3(lhs.x+rhs.x, lhs.y+rhs.y, lhs.z+rhs.z); }
70

Callers 2

addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected