fixed distance equation