you give set vector plane start origin your task find pair vector minimal nonoriente angle themnonoriente angle nonnegative value minimal clockwise counterclockwise direction angle Nonoriented angle 0 π for example opposite direction vector angle equal π