How does one rotate iMac display using Yosemite? With my Mid-2012 MBA running Mountain Lion, I have no issues at all in rotating my display after hitting display in preferences while holding cmd + option keys. However, I've run into a snag with my Late-2013 27" iMac running OS X Version 10.10.2. I would like to rotate my display 270 degrees. What's a workaround I can use to do this?

Edit 1: To be clear, I'm trying to rotate my actual iMac display in the same way I can with my MBA.
This isn't the most elegant solution but there is a C based utility available at https://github.com/CdLbB/fb-rotate. To use the utility, click the download zip in Github. Extract the zip to your downloads folder and then run these commands in the terminal (copy and paste one line at a time, pressing enter after each line) to compile the program (only needs to be done once):

cd ~/Downloads/fb-rotate-master
gcc -w -o fb-rotate fb-rotate.c -framework IOKit -framework ApplicationServices


After that is done, you can run the program like this:

~/Downloads/fb-rotate-master/fb-rotate -d 0 -r 270


The 270 at the end is the rotation you would like. Applicable values are 0, 90, 180, 270. If you feel comfortable enough, you could move this out of your downloads folder, but you would need to edit those terminal commands. You could also turn it into an apple script to make the process easier. (Let me know if you need help with this)