/* * 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 Vector3 = VectorN<3, T>; using DoubleVector3 = Vector3; using FloatVector3 = Vector3; using IntVector3 = Vector3; } namespace AK { template struct Formatter> : Formatter { ErrorOr format(FormatBuilder& builder, Gfx::Vector3 const& value) { return Formatter::format(builder, value.to_string()); } }; } using Gfx::DoubleVector3; using Gfx::FloatVector3; using Gfx::IntVector3; using Gfx::Vector3;