galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Generic.hpp File Reference
#include <algorithm>
#include <vector>
#include "galaxy/meta/Concepts.hpp"
+ Include dependency graph for Generic.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  galaxy
 Timer.hpp galaxy.
 
namespace  galaxy::math
 

Functions

template<meta::is_arithmetic Type>
float galaxy::math::normalize (const Type val, const Type max) noexcept
 Calc normalized value from range.
 
template<typename Type >
bool galaxy::math::contains (const std::vector< Type > &cont, const Type &val) noexcept
 See if a vector contains a value.