Triangle.cpp 508 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2020, Shannon Booth <shannon@serenityos.org>
  3. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #include <AK/ByteString.h>
  8. #include <LibGfx/Triangle.h>
  9. namespace Gfx {
  10. template<>
  11. ByteString Triangle<int>::to_byte_string() const
  12. {
  13. return ByteString::formatted("({},{},{})", m_a, m_b, m_c);
  14. }
  15. template<>
  16. ByteString Triangle<float>::to_byte_string() const
  17. {
  18. return ByteString::formatted("({},{},{})", m_a, m_b, m_c);
  19. }
  20. }