2021-12-29 15:59:18 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
namespace kku
|
|
|
|
{
|
|
|
|
|
2022-05-08 05:43:12 +02:00
|
|
|
/// Vector2
|
|
|
|
///
|
|
|
|
/// Meaning an element of a vector space in math.
|
|
|
|
/// Don't mistake for std::vector<T>
|
2022-10-18 04:59:51 +02:00
|
|
|
template <typename T> using Vector2 = std::pair<T, T>;
|
2021-12-29 15:59:18 +01:00
|
|
|
|
|
|
|
template <typename T>
|
2022-10-18 04:59:51 +02:00
|
|
|
inline constexpr auto makeVector(T &&l, T &&r) -> Vector2<T>
|
2021-12-29 15:59:18 +01:00
|
|
|
{
|
|
|
|
return std::make_pair(std::forward<T>(l), std::forward<T>(r));
|
|
|
|
}
|
|
|
|
|
2022-10-18 04:59:51 +02:00
|
|
|
} // namespace kku
|