Torque 3D 3.7
ContentsIndexHome
PreviousUpNext
MathUtils::mTriangleNormal Function
Syntax
C++
Point3F mTriangleNormal(const Point3F & a, const Point3F & b, const Point3F & c);

Returns the normal of the passed triangle 'abc'. 

If we assume counter-clockwise triangle culling, normal will point out from the 'solid' side of the triangle. 

 

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!