What does COLREGs Rule 14 say?
Rule 14(a): two power-driven vessels meeting on 'reciprocal or nearly reciprocal courses' with risk of collision both turn to starboard, so that they pass port side to port side.
Rule 14(b): the situation is deemed to exist when a vessel sees the other ahead or nearly ahead and, by night, could see her masthead lights in a line or nearly in a line and/or both her sidelights — and, by day, sees the corresponding aspect.
Rule 14(c): if you are in any doubt whether it is head-on, treat it as head-on.