Changed perp to be in a more conventional direction. Added from_heading.