MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / clamp_

Function clamp_

engine/Poseidon/Input/ViewerControlsApply.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18template <class T>
19T clamp_(T v, T lo, T hi)
20{
21 return v < lo ? lo : (v > hi ? hi : v);
22}
23} // namespace
24
25ViewerStateIO ApplyViewerControls(const ViewerControls& c, const ViewerStateIO& in, float deltaT,

Callers 1

ApplyViewerControlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected