Crafter.Math/interfaces/Crafter.Math-Basic.cppm

29 lines
922 B
Text
Raw Permalink Normal View History

2025-05-07 19:18:58 +02:00
/*
2026-02-05 01:18:05 +01:00
Crafter®.Math
Copyright (C) 2026 Catcrafts®
catcrafts.net
2025-05-07 19:18:58 +02:00
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
2026-02-05 01:18:05 +01:00
License version 3.0 as published by the Free Software Foundation;
2025-05-07 19:18:58 +02:00
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
2025-05-05 02:01:44 +02:00
2026-02-11 02:52:03 +01:00
export module Crafter.Math:Basic;
2026-01-29 20:19:20 +01:00
import std;
2025-05-05 02:01:44 +02:00
namespace Crafter {
2026-02-11 02:52:03 +01:00
template<typename T>
constexpr T ToRadian(T degrees) {
return degrees * (std::numbers::pi / 180);
}
2025-05-05 05:14:39 +02:00
}