MCPcopy Create free account
hub / github.com/crownengine/crown / match

Function match

src/resource/expression_language.cpp:66–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 inline float match(float a, float b)
67 {
68 return fmax(1.0f - length(a, b), 0.0f);
69 }
70
71 inline float match2d(float a, float b, float c, float d)
72 {

Callers 2

match2dFunction · 0.70
default_compute_functionFunction · 0.70

Calls 2

fmaxFunction · 0.85
lengthFunction · 0.70

Tested by

no test coverage detected