OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
crossp.f
Go to the documentation of this file.
1  subroutine crossp(v1,v2,v3)
2 c
3 c crossp(v1,v2,v3)
4 c
5 c purpose: computes vector cross product v3 = v1 x v2
6 c
7 c calling arguments:
8 c
9 c name Type i/o description
10 c -------- ---- --- -----------
11 c v1(3) r*4 i input vector
12 c v2(3) r*4 i input vector
13 c v3(3) r*4 o output vector
14 c
15 c by: fred patt, gsc
16 c
17 c notes:
18 c
19 c modification history:
20 c
21  implicit none
22 c
23  real v1(3),v2(3),v3(3)
24 c
25 c
26  v3(1)=v1(2)*v2(3)-v1(3)*v2(2)
27  v3(2)=v1(3)*v2(1)-v1(1)*v2(3)
28  v3(3)=v1(1)*v2(2)-v1(2)*v2(1)
29 c
30  return
31  end
float * vector(long nl, long nh)
Definition: nrutil.c:15
subroutine crossp(v1, v2, v3)
Definition: crossp.f:2