added distance function for yaw, pitch, and roll