/** * Copyright (c) 2025, Jayden Grubb * * SPDX-License-Identifier: BSD-3-Clause */ #pragma once #include #include namespace Nova { NOVA_BEGIN_ALLOW_ANONYMOUS_TYPES template struct Vec2 { union { struct { T x, y; }; struct { T u, v; }; struct { T width, height; }; T data[2]; }; }; using iVec2 = Vec2; using uVec2 = Vec2; NOVA_END_ALLOW_ANONYMOUS_TYPES } // namespace Nova