Drawing arrow in OpenGL

We have two points A and B in 3D. The problem is to find the way to draw a line that the started point is A and the later is…