예제 #1
0
파일: Vec.cs 프로젝트: johtela/Compose3D
 /// <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));
 }
예제 #2
0
파일: Vec.cs 프로젝트: johtela/Compose3D
 /// <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));
 }