 |
TriangleModelNodeCalculateNormal Method |
CalculateNormal returns a Vector3 that is a normal vector of the triangle defined by the three points p1, p2 and p3.
The normal vector is calculated as a cross product of (p2 - p1) and (p3 - p1) and then normalized.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic static Vector3 CalculateNormal(
Vector3 p1,
Vector3 p2,
Vector3 p3
)
Parameters
- p1 Vector3
- first position
- p2 Vector3
- second position
- p3 Vector3
- third position
Return Value
Vector3Vector3 that is a normal vector of the triangle defined by the three points p1, p2 and p3
See Also