Duplicate or not, this instance of the function is declared in the global namespace, which is not acceptable. Maybe make it a public static member of Pathfinder? Maybe with a comment, that this is not the usual kind of sign function?