(To get this one to work here, we needed to move the button function calls to the main script, since all javascript is at the bottom of the page for performance reasons.)
angle dof text local coords rotated coords boat