User talk:LucasVB/Square sine and cosine functions
Appearance
I was doing a search of the net to see if there were some established functions that give values trapazoidal wave forms, and I found your page. Turns out that this function provides a great way to determine circle - rectangle collision results.
some math you might be interested in: http://www.till.com/articles/QuadTrapVCO/trapezoid.html
Definition of PPn
There seems to be an error in your definition of :
is the inverse of so you canreduce this to:
Which you can further reduce to assuming n isn't 0.