Exemple #1
0
 /// <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));
 }
Exemple #2
0
 /// <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));
 }