vect_prod
Returns the vectorial product of two vectors.
Location in HEALPix directory tree: src/f90/mod/pix_tools.F90
FORMAT
call vect_prod(
v1, v2, v3
)
ARGUMENTS
name & dimensionality |
kind |
in/out |
description |
|
|
|
|
v1(3) |
DP |
IN |
cartesian vector . |
v2(3) |
DP |
IN |
cartesian vector . |
v3(3) |
DP |
OUT |
cartesian vector
|
EXAMPLE:
use healpix_types
use pix_tools, only : vect_prod
real(DP), dimension(3) :: vec
real(DP) :: one = 1.0_dp
call vect_prod((/2,0,0/)*one, (/0,1,0/)*one, vec)
print*, vec
will return : 0.00E+000 0.00E+000 2.00
RELATED ROUTINES
This section lists the routines related to vect_prod
-
ang2vec
- converts the position angles of a point on the sphere
into its 3D position vector.
-
angdist
- computes the angular distance between 2 vectors
-
vec2ang
- converts the 3D position vector of point into its position
angles on the sphere.
Version 3.83, 2024-11-13