Add math utilities header & sqr function
This commit is contained in:
parent
9cf5a88afd
commit
9a47bddb73
1 changed files with 12 additions and 0 deletions
12
libs/geom/include/psemek/geom/math.hpp
Normal file
12
libs/geom/include/psemek/geom/math.hpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
namespace psemek::geom
|
||||
{
|
||||
|
||||
template <typename T>
|
||||
auto sqr(T const & x)
|
||||
{
|
||||
return x * x;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue