COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cvecProd.f
Go to the documentation of this file.
1 ! get vector product of two 3d vectors in cartesian coord.
2 !
3  subroutine cvecprod(a, b, c)
4 !---- include 'Zcoord.h'
5 #include "Zcoord.h"
6  type(coord)::a
7  type(coord)::b
8  type(coord)::c
9 ! c <- a x b
10  c%r(1) = a%r(2) * b%r(3) - a%r(3) * b%r(2)
11  c%r(2) = a%r(3) * b%r(1) - a%r(1) * b%r(3)
12  c%r(3) = a%r(1) * b%r(2) - a%r(2) * b%r(1)
13  end
14 
15 
subroutine cvecprod(a, b, c)
Definition: cvecProd.f:4
Definition: Zcoord.h:43