/* * Copyright (c) 2021, Stephan Unverwerth * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "VectorN.h" #include #include #include namespace Gfx { template using Vector4 = VectorN<4, T>; using DoubleVector4 = Vector4; using FloatVector4 = Vector4; using IntVector4 = Vector4; } namespace AK { template struct Formatter> : Formatter { ErrorOr format(FormatBuilder& builder, Gfx::Vector4 const& value) { return Formatter::format(builder, value.to_string()); } }; } using Gfx::DoubleVector4; using Gfx::FloatVector4; using Gfx::IntVector4; using Gfx::Vector4;