BananaMpq.MathUtil.TriangleNormal C# (CSharp) 메소드

TriangleNormal() 공개 정적인 메소드

public static TriangleNormal ( Vector3 a, Vector3 b, Vector3 c ) : Vector3
a Vector3
b Vector3
c Vector3
리턴 Vector3
        public static Vector3 TriangleNormal(Vector3 a, Vector3 b, Vector3 c)
        {
            var ab = (b - a);
            var ac = (c - a);
            return Vector3.Normalize(Vector3.Cross(ab, ac));
        }