rotRect using points
fixed warnings
removed inline, changed interface
added test, doc
added randomized test
addressed issues
Merge pull request #2358 from rohitgirdhar:rotatedRect