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

Go to the source code of this file.

Namespaces

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

Functions

template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::max (arr_t< Size, T > left, arr_t< Size, U > right) noexcept -> arr_t< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::min (arr_t< Size, T > left, arr_t< Size, U > right) noexcept -> arr_t< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::add (arr_t< Size, T > left, arr_t< Size, U > right) noexcept -> arr_t< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::add (vec< Size, T > left, arr_t< Size, U > right) noexcept -> vec< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::sub (arr_t< Size, T > left, arr_t< Size, U > right) noexcept -> arr_t< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::sub (vec< Size, T > left, arr_t< Size, U > right) noexcept -> vec< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::mul (arr_t< Size, T > left, U right) noexcept -> arr_t< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::mul (arr_t< Size, T > left, arr_t< Size, U > right) noexcept -> arr_t< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::mul (vec< Size, T > left, arr_t< Size, U > right) noexcept -> vec< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::div (arr_t< Size, T > left, U right) noexcept -> arr_t< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::div (arr_t< Size, T > left, arr_t< Size, U > right) noexcept -> arr_t< Size, T >
template<u32 Size, typename T, typename U = T>
constexpr auto ice::math::div (vec< Size, T > left, arr_t< Size, U > right) noexcept -> vec< Size, T >