12345678910111213141516171819202122232425 |
- /*
- * Copyright (c) 2020, Shannon Booth <shannon@serenityos.org>
- * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #include <AK/ByteString.h>
- #include <LibGfx/Triangle.h>
- namespace Gfx {
- template<>
- ByteString Triangle<int>::to_byte_string() const
- {
- return ByteString::formatted("({},{},{})", m_a, m_b, m_c);
- }
- template<>
- ByteString Triangle<float>::to_byte_string() const
- {
- return ByteString::formatted("({},{},{})", m_a, m_b, m_c);
- }
- }
|