Triangle.cpp 482 B

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