sight2perpdist function

Convert sight distance and sight angle to perpendicular distance.