User talk:LucasVB/Square sine and cosine functions

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