wynnbuilder-forked-for-changes/js/c++/utils.h
hppeng b157f79fc0 Trying things out with emscripten
super inefficient for dev for now; set multiple files to compile separately
into frankenstein js files as I migrate code
2023-04-10 13:08:22 -07:00

12 lines
204 B
C

#pragma once
/**
* Clamp number between low and high values.
*
* @param num: value to clamp
* @param low
* @param high
*
* @return clamped value
*/
float clamp(float num, float low, float high);