foxygit / fake-08-xbox360 Log in
main xbox360 commits tags

/source/mathhelpers.h · 179 B

raw
#pragma once

//std::clamp is in c++17, but not c++11
int clamp (int val, int lo, int hi);

float clamp (float val, float lo, float hi);

float lerp (float a, float b, float t);