I apologize if this is in the wrong section. I am writing a computer game and I need a mathematical function to represent a road. I remember seeing a graph of a function before but I cannot remember the function. Does anyone recognize this graph and it's corresponding function?
I apologize for the poor quality, this is the best I could come up with.
If not can anyone give me an idea on how I would find out, or some knowledge on how I can create a function to look somewhat similar?
Basically it needs to start at 0,0, but then jump up higher and cycle back and forth before coming back down to 0,y.
Thank you for any help you can give.
I apologize for the poor quality, this is the best I could come up with.
If not can anyone give me an idea on how I would find out, or some knowledge on how I can create a function to look somewhat similar?
Basically it needs to start at 0,0, but then jump up higher and cycle back and forth before coming back down to 0,y.
Thank you for any help you can give.