コード例 #1
0
        // Token: 0x060000AC RID: 172 RVA: 0x00007CA0 File Offset: 0x00005EA0
        public static double GetAngleDelta(Vector3 mainPos, Vector3 forward, Vector3 target)
        {
            Vector3 lhs = VectorUtilities.Normalize(target - mainPos);

            return(System.Math.Atan2(VectorUtilities.GetMagnitude(Vector3.Cross(lhs, forward)), (double)Vector3.Dot(lhs, forward)) * 57.295779513082323);
        }
コード例 #2
0
 // Token: 0x060000AB RID: 171 RVA: 0x00007C80 File Offset: 0x00005E80
 public static Vector3 Normalize(Vector3 vector)
 {
     return(vector / (float)VectorUtilities.GetMagnitude(vector));
 }