add lineToPointDistance func, this is not proven yet