projectVecOnPlane Function

private function projectVecOnPlane(vecU, plane) result(res)

This function project given vector on an given plane

Example: projection of vector a onto a vector u is given as \f$ proj_u a = \frac{a \cdot u}{|u|^2} \cdot u \f$

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: vecU(3)

vector to project

type(tem_plane_type), intent(in) :: plane

plane on which vecU will be projected

Return Value real(kind=rk), (3)

output projected value