Not sure if you found this or not, but this was on the wiki at the bottom of the api page. It's a user defined function.
http://www.wowwiki.com/GetPlayerBearing