Gaining karma by creating triangle method

* Triangle method created

[#54145835]
Gaining karma by creating triangle method

* Triangle method refactored

[#54145835]