commented ClosestValidPoint class