/* * Copyright (c) 2020, 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 Vector2 = VectorN<2, T>; using FloatVector2 = Vector2; using DoubleVector2 = Vector2; } namespace AK { template struct Formatter> : Formatter { ErrorOr format(FormatBuilder& builder, Gfx::Vector2 const& value) { return Formatter::format(builder, value.to_string()); } }; } using Gfx::DoubleVector2; using Gfx::FloatVector2; using Gfx::Vector2;