orthogonal Function

private elemental function orthogonal(lhs, rhs) result(ortho)

Compute the component of lhs orthogonal to rhs.

 type(vector_R16P) :: pt(0:2)
 pt(1) = 2 * ex_R16P + 3 * ey_R16P
 pt(2) = ex_R16P
 pt(0) = pt(1).ortho.pt(2)
 print "(3(F3.1,1X))", abs(pt(0)%x), abs(pt(0)%y), abs(pt(0)%z)

Arguments

TypeIntentOptionalAttributesName
class(vector_R16P), intent(in) :: lhs

Left hand side.

type(vector_R16P), intent(in) :: rhs

Right hand side.

Return Value type(vector_R16P)

Component of of lhs orthogonal to rhs.


Contents

None