EasyHack Archive

10 Mar 2022

Use std::hypot for Pythagorean Addition – EasyHack

There are many places in the code that calculating the Pythagorean addition is needed. Read the

8 Mar 2022

Use Range Based For Loops – EasyHack

Because for loops are a powerful tool in C/C++, they are one of the desirable tools when you

31 Dec 2021

Use basegfx to convert angle unit – EasyHack

What is basegfx?

First, what is basegfx, how it is used for converting angle units, and why we

23 Nov 2021

Use symbolic constants instead of magic numerical constants – EasyHack

There are many situations that you need to use numerical constants in your code. If

17 Nov 2021

Use atan2 function instead of atan – EasyHack

When working with shapes and charts in LibreOffice, there are several occasions that you have to calculate