I just wrote an email to the author of my prescribed textbook in computer graphics at UNISA.
Here is the text of the email..
I have just finished reading p78, your section on creating a Sierpinski triangle using recursion.
I am using the International Edition.
I think I have found an error that is not listed on your errata page located at this link:
(I am a student studying UNISA, the University of South Africa; and in the third year undergraduate course on computer graphics your text is the prescribed literature.)
You write :-
“Suppose that the vertices of our original triangle are given by the array
Then the midpoints of the sides are given by the array m, which can be computed using the code
for(j=0; jfor(j=0; jfor(j=0; j
Surely it should read
Then the midpoints of the sides are given by the array m, which can be computed using the code?
Or am I just an idiot; with an error in my brain?