2020-02-14 20:58:14 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Shannon Booth <shannon.ml.booth@gmail.com>
|
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
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <AK/String.h>
|
|
|
|
|
#include <LibGfx/Triangle.h>
|
|
|
|
|
|
|
|
|
|
namespace Gfx {
|
|
|
|
|
|
2022-04-07 08:59:16 -03:00
|
|
|
template<>
|
|
|
|
|
String Triangle<int>::to_string() const
|
|
|
|
|
{
|
|
|
|
|
return String::formatted("({},{},{})", m_a, m_b, m_c);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<>
|
|
|
|
|
String Triangle<float>::to_string() const
|
2020-02-14 20:58:14 -03:00
|
|
|
{
|
2021-01-11 10:38:09 -03:00
|
|
|
return String::formatted("({},{},{})", m_a, m_b, m_c);
|
2020-02-14 20:58:14 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|