public elemental function face_normal3_R16P(pt1, pt2, pt3, norm) result(normal)
Calculate the normal of the face defined by the 3 points.
The convention for the points numeration is the following:
3.----.2
\ |
\ |
\ |
\|
.1
The normal is calculated by the cross product of the side s12 for the side s13: s12 x s13.
The normal is normalized if the variable norm is passed (with any value).
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.