blob: 1642aaed0d3fbcecc0e3321eef5c1a7d23e43971 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* Copyright (c) 2020, Shannon Booth <shannon.ml.booth@gmail.com>
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/DeprecatedString.h>
#include <LibGfx/Triangle.h>
namespace Gfx {
template<>
DeprecatedString Triangle<int>::to_deprecated_string() const
{
return DeprecatedString::formatted("({},{},{})", m_a, m_b, m_c);
}
template<>
DeprecatedString Triangle<float>::to_deprecated_string() const
{
return DeprecatedString::formatted("({},{},{})", m_a, m_b, m_c);
}
}
|