One more question about vector3 rotation.

Hello all. Help me pls.
I have a vector3 that i use for throw velocity(calculatiog throw path).
I need to rotate thiw vector by two axis: X and Y(up\down and left\right).

How can i do this? I tried use rotation matrix but my results are wrong - my “float angle” before rotation != real angle(Vector3.angle(old, new)).
How can i easy rotate my vector? :-[

Construct a rotation using Euler angles or use two Quaternions

  var vec = Quaternion.AngleAxis(xDegrees, Vector3.right) * Quaternion.AngleAxis(yDegrees, Vector3.up) * sourceVector;

  var vec = Quaternion.Euler(x,y,0) * sourceVector;