How to check if location is valid for AI

I cannot seem to find “closest point on Sphere to line”