/// <summary> /// The angle of the vector in XZ-plane. I.e. the angle of rotation around Y-axis. /// </summary> public static float YRotation(this Vec3 vec) { return(FMath.Atan2(vec.X, vec.Z)); }
/// <summary> /// The angle of the vector in YZ-plane. I.e. the angle of rotation around X-axis. /// </summary> public static float XRotation(this Vec3 vec) { return(FMath.Atan2(-vec.Y, vec.Z)); }