MCPcopy Create free account
hub / github.com/RozDavid/UnScene3D / lerp

Function lerp

utils/cpp_utils/include/segmentator.h:105–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 return c;
104}
105vec3f lerp(const vec3f& a, const vec3f& b, const float v) {
106 const float u = 1.0f - v;
107 return vec3f(v * b.x + u * a.x, v * b.y + u * a.y, v * b.z + u * a.z);
108}
109
110inline bool ends_with(const std::string& value, const std::string& ending) {
111 if (ending.size() > value.size()) { return false; }

Callers 1

segment_meshFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected