MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / minimum

Function minimum

extern/toojpeg/toojpeg.cpp:186–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184// same as std::min()
185template <typename Number>
186Number minimum(Number value, Number maximum)
187{
188 return value <= maximum ? value : maximum;
189}
190
191// restrict a value to the interval [minimum, maximum]
192template <typename Number, typename Limit>

Callers 1

writeJpegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected