summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Vector3.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-04-29 15:07:59 +0200
committerAndreas Kling <kling@serenityos.org>2022-05-05 20:50:46 +0200
commit54108263d6aee0b0087d62e857dc65a8e83d7676 (patch)
tree09d6f30f441554d491f8cdb95f3a950d96928c6c /Userland/Libraries/LibGfx/Vector3.h
parentf5ea93edfde38511f12931a9a809f3ddf4d8a8f4 (diff)
downloadserenity-54108263d6aee0b0087d62e857dc65a8e83d7676.zip
LibGfx: Add `IntVector2/3/4` types
The type `Vector<N, int>` is used often enough that it warrants its own dedicated type.
Diffstat (limited to 'Userland/Libraries/LibGfx/Vector3.h')
-rw-r--r--Userland/Libraries/LibGfx/Vector3.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Vector3.h b/Userland/Libraries/LibGfx/Vector3.h
index 058413729a..4c73f91551 100644
--- a/Userland/Libraries/LibGfx/Vector3.h
+++ b/Userland/Libraries/LibGfx/Vector3.h
@@ -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;