2020-02-14 20:58:14 -03:00
|
|
|
/*
|
2023-07-15 07:33:22 -03:00
|
|
|
* Copyright (c) 2020, Shannon Booth <shannon@serenityos.org>
|
2022-04-07 08:59:16 -03:00
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
2020-02-14 20:58:14 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-02-14 20:58:14 -03:00
|
|
|
*/
|
|
|
|
|
|
2022-12-04 15:02:33 -03:00
|
|
|
#include <AK/DeprecatedString.h>
|
2020-02-14 20:58:14 -03:00
|
|
|
#include <LibGfx/Triangle.h>
|
|
|
|
|
|
|
|
|
|
namespace Gfx {
|
|
|
|
|
|
2022-04-07 08:59:16 -03:00
|
|
|
template<>
|
2022-12-05 22:12:49 -03:00
|
|
|
DeprecatedString Triangle<int>::to_deprecated_string() const
|
2022-04-07 08:59:16 -03:00
|
|
|
{
|
2022-12-04 15:02:33 -03:00
|
|
|
return DeprecatedString::formatted("({},{},{})", m_a, m_b, m_c);
|
2022-04-07 08:59:16 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<>
|
2022-12-05 22:12:49 -03:00
|
|
|
DeprecatedString Triangle<float>::to_deprecated_string() const
|
2020-02-14 20:58:14 -03:00
|
|
|
{
|
2022-12-04 15:02:33 -03:00
|
|
|
return DeprecatedString::formatted("({},{},{})", m_a, m_b, m_c);
|
2020-02-14 20:58:14 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|