1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

LibGfx: Add IntVector2/3/4 types

The type `Vector<N, int>` is used often enough that it warrants its own
dedicated type.
This commit is contained in:
Jelle Raaijmakers 2022-04-29 15:07:59 +02:00 committed by Andreas Kling
parent f5ea93edfd
commit 54108263d6
3 changed files with 9 additions and 3 deletions

View file

@ -17,8 +17,9 @@ namespace Gfx {
template<class T>
using Vector3 = VectorN<3, T>;
using FloatVector3 = Vector3<float>;
using DoubleVector3 = Vector3<double>;
using FloatVector3 = Vector3<float>;
using IntVector3 = Vector3<int>;
}
@ -36,4 +37,5 @@ struct Formatter<Gfx::Vector3<T>> : Formatter<StringView> {
using Gfx::DoubleVector3;
using Gfx::FloatVector3;
using Gfx::IntVector3;
using Gfx::Vector3;