mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37: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:
parent
f5ea93edfd
commit
54108263d6
3 changed files with 9 additions and 3 deletions
|
@ -17,8 +17,9 @@ namespace Gfx {
|
|||
|
||||
template<class T>
|
||||
using Vector4 = VectorN<4, T>;
|
||||
using FloatVector4 = Vector4<float>;
|
||||
using DoubleVector4 = Vector4<double>;
|
||||
using FloatVector4 = Vector4<float>;
|
||||
using IntVector4 = Vector4<int>;
|
||||
|
||||
}
|
||||
|
||||
|
@ -36,4 +37,5 @@ struct Formatter<Gfx::Vector4<T>> : Formatter<StringView> {
|
|||
|
||||
using Gfx::DoubleVector4;
|
||||
using Gfx::FloatVector4;
|
||||
using Gfx::IntVector4;
|
||||
using Gfx::Vector4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue