IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
common.hxx File Reference
#include <ice/types.hxx>
#include <ice/math/angles.hxx>
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  ice
 SPDX-License-Identifier: MIT.
namespace  ice::math

Functions

constexpr auto ice::math::radians (deg degrees) noexcept -> rad
constexpr auto ice::math::degrees (rad radians) noexcept -> deg
constexpr auto ice::math::sqrt (f32 val) noexcept -> f32
constexpr auto ice::math::sin (rad radians) noexcept -> f32
constexpr auto ice::math::cos (rad radians) noexcept -> f32
constexpr auto ice::math::tan (rad radians) noexcept -> f32
auto ice::math::atan (rad x) noexcept -> f32
auto ice::math::atan2 (f32 x, f32 y) noexcept -> f32
constexpr auto ice::math::clamp (f32 val, f32 min, f32 max) noexcept -> f32
constexpr auto ice::math::radians (deg64 degrees) noexcept -> rad64
constexpr auto ice::math::degrees (rad64 radians) noexcept -> deg64
constexpr auto ice::math::sgn (f32 val) noexcept -> f32
constexpr auto ice::math::abs (f32 val) noexcept -> f32
auto ice::math::pow (f32 base, f32 exp) noexcept -> f32
constexpr auto ice::math::cbrt (f32 val) noexcept -> f32
constexpr auto ice::math::factorial (u32 n) noexcept -> u32
constexpr auto ice::math::sin (rad64 angle) noexcept -> f64
constexpr auto ice::math::cos (rad64 angle) noexcept -> f64
constexpr auto ice::math::tan (rad64 radians) noexcept -> f64
auto ice::math::atan (rad64 angle) noexcept -> f64
auto ice::math::atan2 (f64 x, f64 y) noexcept -> f64