The length of the sides of H would be off since you are doing a lot of integer divisions in your code. A correct approach would be to create a private overload of drawHTree that accepts (double x, double y, double length, ...) and delegate the actual drawing there.
Lovely! This channel deserves more views! Just hang in till you hit 100k, then the rate of subscribers will increase, it's all snowball effect
The length of the sides of H would be off since you are doing a lot of integer divisions in your code. A correct approach would be to create a private overload of drawHTree that accepts (double x, double y, double length, ...) and delegate the actual drawing there.
How would you go about passing doubles to the drawline then as this accepts ints only?
@@oussama40612 static cast