1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Remove the last usage of Math.hpp

This commit is contained in:
Linus Unnebäck
2018-08-12 13:04:00 +01:00
parent fd07be587a
commit 2b3370228b
2 changed files with 4 additions and 29 deletions

View File

@@ -1,27 +0,0 @@
/*****************************************************************************
* Copyright (c) 2014-2018 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#pragma once
#include <algorithm>
/**
* Common mathematical functions.
*/
namespace Math
{
template<typename T> static T Sign(T x)
{
if (x < 0)
return -1;
if (x > 0)
return 1;
return 0;
}
} // namespace Math