Pathfinding.Int3.Dot C# (CSharp) Méthode

Dot() public static méthode

public static Dot ( Int3 lhs, Int3 rhs ) : int
lhs Int3
rhs Int3
Résultat int
		public static int Dot (Int3 lhs, Int3 rhs) {
			return
					lhs.x * rhs.x +
					lhs.y * rhs.y +
					lhs.z * rhs.z;
		}
		

Usage Example

Exemple #1
0
        // Token: 0x0600017B RID: 379 RVA: 0x000108A8 File Offset: 0x0000ECA8
        public static float Angle(Int3 lhs, Int3 rhs)
        {
            double num = (double)Int3.Dot(lhs, rhs) / ((double)lhs.magnitude * (double)rhs.magnitude);

            num = ((num >= -1.0) ? ((num <= 1.0) ? num : 1.0) : -1.0);
            return((float)Math.Acos(num));
        }
All Usage Examples Of Pathfinding.Int3::Dot