Help with Converting Right Ascension and Declination into 3D Vectors
The stars should fit $r = \sqrt{x^2 + y^2 + z^2}$ but seem to be plotted in the $x = r$ plane instead.

Conventionally the x axis is at (&alpha;=0h, &delta;=0&deg;),
the y axis is at (&alpha;=6h, &delta;=0&deg;),
and the z axis is at &delta;=+90&deg;.

Using right triangles instead of isosceles triangles,



Then $h = r \cos \delta$, and
$$\begin{align}
x &amp;= r \cos \delta \cos \alpha \\
y &amp;= r \cos \delta \sin \alpha \\
z &amp;= r \sin \delta
\end{align}$$

Most math libraries use radians for angles.
Passing angles in other units to trig functions may result in a celestial sphere covered somewhat evenly but incorrectly.