Yes. The shape from your example is a "sawtooth" wave (from the now edited code above, by using the commented sawtooth code). Although triangular, it is different than the one commonly called "triangle". Roughly speaking, the "sawtooth" is a right-angle triangular waveform, while the "triangle" could be described as equilateral.

Image source: Waveform on Wikipedia.