Unit vector of the cross product of two 3x1 vectors
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(3) | :: | v1 | ||
real(kind=wp), | intent(in), | dimension(3) | :: | v2 |
pure function ucross(v1,v2) result(u) implicit none real(wp),dimension(3),intent(in) :: v1 real(wp),dimension(3),intent(in) :: v2 real(wp),dimension(3) :: u u = unit(cross(v1,v2)) end function ucross