Alan, I use the app "Tilt Meter" on the iPod. Their website is here,
http://www.tiltmeterapp.com/
I set the displayed precision to show tenths of a degree and place the iPod against the forward face of the mast just below the boom and read of the rake angle directly.
I have used this app to measure the angles the boat sits in the water on reference surfaces (like the bridge deck) so I could set her up on the trailer in the same position and adjust my rigging in the driveway if I wanted to or if I add something to the boat like extra fuel I can see right away how effects the trim, not an issue usually with a bigger boat but for me it makes a difference.
I have other boating apps on the iPod too, charts of all of the east coast of USA, a boaters reference book (1800 pages), animated knots, electronic subscription to Sail magazine, and Skype that works when I have a wifi connection. I like to use the iPod to check my email when on a cruise, easier than always taking the laptop to shore.
Also to adjust mast I attach a tape measure to a large sail slug as used on the sail head, I use the main halyard to raise it and downhaul to keep it fixed in one position anyplace on the mast. I found without a downhaul the stretch in the halyard would effect the measured value by the amount of tension used on the tape, the dowhaul allows me to take the stretch out of the halyard to eliminate this. I measure from side to side to masking tape on each gunnel, beside the mast, the position of the masking tape is measured back from the bow chainplate pin for the forestay. This way I can check for any side to side bend in the mast at any height.
I you need any more detail let me know, Bob