View Single Post
Old 19th March 2005, 11:43   #225
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,064
A faster way:
Triangular wave for an SSC:

code:
x=i*2-1;
y=asin(sin(i*$pi*2))/asin(1);



for general use:
code:

frame:
t=t+.05;
numwave=3;
point:
y=asin(sin(t*$pi*2*numwave))/asin(1);


Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever

Last edited by Warrior of the Light; 19th March 2005 at 12:03.
Warrior of the Light is offline   Reply With Quote