How to find perpendicular point at given distance in ThreeJs

This is the best I came up, looking at this explanation :

PS Not sure, if the solution is the desired one at all.