C axis in gcode

Do you mean two points? There is no angle between two points. You probably mean the angle between two lines (or vectors) from a third point to each of two points? Posting some geometry with a clear image usually helps to communicate your goal.