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

Function clamp

utils/cpp_utils/include/vec3.h:454–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452
453 template<class T>
454 inline vec3<T> clamp(const vec3<T> &p, T pMin, T pMax) {
455 return vec3<T>(
456 clamp(p.x, pMin, pMax),
457 clamp(p.y, pMin, pMax),
458 clamp(p.z, pMin, pMax));
459 }
460
461 template<class T>
462 inline vec3<T> triangleNormal(const vec3<T> &v0, const vec3<T> &v1, const vec3<T> &v2) {

Callers 2

angleBetweenMethod · 0.70
trianglePointDistSqFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected