initial game

This commit is contained in:
programsnail 2024-07-22 21:22:52 +03:00
parent 4570d6e593
commit adabb50a9e
10 changed files with 200 additions and 132 deletions

View file

@ -3,13 +3,13 @@
#include <cmath>
template <typename T> struct Vec {
T x;
T y;
T x = {};
T y = {};
//
template <typename U> explicit operator Vec<U>() {
return Vec<U>{.x = x, .y = y};
return Vec<U>{.x = static_cast<U>(x), .y = static_cast<U>(y)};
}
//