I have a point on a sphere that needs to be rotated. I have 3 different degrees of rotation (roll, pitch, yaw). Are there any formulas I could use to calculate where the point would end up after applying each rotation? For simplicity's sake, the sphere can be centered on the origin if that helps.
I've tried looking at different ways of rotation, but nothing quite matches what I am looking for. If I needed to just rotate the sphere, I could do that, but I need to know the position of a point based on the rotation of the sphere.
If the original point is at (1, 0, 0), and the sphere then gets rotated by [45, 30, 15], what is the new (x, y, z) of the point?
Rotation matrices are a useful tool in order to understand how to solve your problem. If you rotate your sphere with roll $\gamma$, pitch $\beta$ and yaw $\alpha$, this is equivalent to saying that every point $p$ on the original sphere gets mapped to a point $p_r$ on the rotated sphere defined as: $$ p_r = R_z(\alpha)R_y(\beta)R_x(\gamma)p, $$ where the basic rotation matrices $R_x$, $R_y$ and $R_z$ can be found here. Now, all you need to do is plug-in your numerical values for $\alpha$, $\beta$, $\gamma$ and $p$, and you'll obtain the rotated point.
(Here I'm considering that you perform roll, pitch and yaw in this order, but for any other ordering you can just swap the basic rotation matrices accordingly.)
Edit for additional details: I'm guessing you're not familiar with matrix multiplication. If you were to expand the formula above, and assuming that your initial point $p$ has coordinates $[p_x,p_y,p_z]$, the rotated point $p_r$ would be written as: $$ p_r = \begin{bmatrix} p_y \left(c_{\alpha } s_{\beta } s_{\gamma }-c_{\gamma } s_{\alpha}\right)+p_z \left(c_{\alpha } c_{\gamma } s_{\beta }+s_{\alpha } s_{\gamma}\right)+c_{\alpha } c_{\beta }p_x \\\\ c_{\beta } p_x s_{\alpha }+p_y\left(c_{\alpha } c_{\gamma }+s_{\alpha } s_{\beta } s_{\gamma }\right)+p_z\left(c_{\gamma } s_{\alpha } s_{\beta }-c_{\alpha } s_{\gamma}\right) \\\\ c_{\beta } p_y s_{\gamma }+c_{\beta } c_{\gamma } p_z-p_x s_{\beta}\end{bmatrix}, $$ where $c_\theta=\cos\theta$ and $s_\theta=\sin\theta$. As you can see this is quite a mouthful (in fact, I used a script to get this matrix). If you want to familiarize yourself with matrix multiplication, the Wikipedia page is a good place to start. Nevertheless, you can use the formula to directly compute the coordinates of the rotated point; plugging in your numerical values, you have: $$ p_r = \begin{bmatrix} \frac{1}{4} \sqrt{\frac{3}{2}} \left(1+\sqrt{3}\right)\\\\ \frac{1}{4}\sqrt{\frac{3}{2}} \left(\sqrt{3}-1\right)\\\\ -\frac{1}{2} \end{bmatrix} $$