I am trying to create a circle in 3D space, and all I have is a vector from Point A to Point B, and a radius. The center point of this circle can be any point along the line A to B, but the circle needs to face in the direction of the vector.
Now, I understand how to make a circle in 2D space; x = radius * cos(angle); y = radius * sin(angle), but the third dimension really begins to confuse me. I took to geogebra to see if I could figure out how to do it, and while I've managed to get the result I want, I can't understand how the values from its predefined Circle function are created. Here's an image of my desired result. What I don't understand is how 1.41, 0.82 and 1.63 are obtained.
I've tried to find resources to help me with this specific problem online but have not got very far and would appreciate some help.

Given a normal direction to the circle, in which slides the center, and a radius, we can build a circle as follows. First, assuming the center point is at $c = \frac 12(A+B)$ and with $\vec n = \frac{A-B}{\|A-B\|}$ we construct a orthonormal basis centered at $c$ with $\{\vec u, \ \vec v,\ \vec n\}$ such that $\vec u\times\vec v = \vec n$ and then we have the circle with radius $r$ as
$$ \mathcal{C}(\theta) = c + r\vec u\cos\theta + r\vec v\sin\theta $$
NOTE
To choose $\vec u$ given $\vec n$ we solve
$$ \cases{ u_xn_x+u_yn_y+u_zn_z=0\\ u_x^2+u_y^2+u_z^2 = 1 } $$