Rotating a vector returns incorrect results

I still don’t know what caused this entirely but I know the values were wrong because the IcoSphere my code was generating had all the correct triangles but they were in the wrong locations/orientations compared to the original code