summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Triangle.cpp
blob: 5ba03a2a9dca6bfc8fcda235c1aa0f5deaef25f5 (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/String.h>
#include <LibGfx/Triangle.h>

namespace Gfx {

template<>
String Triangle<int>::to_string() const
{
    return String::formatted("({},{},{})", m_a, m_b, m_c);
}

template<>
String Triangle<float>::to_string() const
{
    return String::formatted("({},{},{})", m_a, m_b, m_c);
}

}