関数TF_xxi2rgamma マニュアル

(The documentation of function TF_xxi2rgamma)

Last Update: 2022/3/31


◆機能・用途(Purpose)

ソース位置ξと観測点位置xを与えて ソースから観測点までの距離rと 単位方向ベクトルγを計算する。
Compute the distance, r, and the unit directional vector, γ, from the source to the station using the source location ξ and the station location x.


◆形式(Format)

#include "WIHM_sub/geometry.h"
inline double TF_xxi2rgamma (const double ∗x,const double ∗xi,double ∗gamma)


◆引数(Arguments)

xi ソース位置ξ=(ξ1,ξ2,ξ3) [m]の値を並べた配列。 xi[0]=ξ1、xi[1]=ξ2、xi[2]=ξ3である。
An array composed of the values of source location ξ=(ξ1,ξ2,ξ3) [m]; xi[0]=ξ1, xi[1]=ξ2, and xi[2]=ξ3.
x 観測点座標x=(x1,x2,x3) [m]の値を並べた配列。 x[0]=x1、x[1]=x2、x[2]=x3である。
An array composed of the values of station location x=(x1,x2,x3) [m]; x[0]=x1, x[1]=x2, and x[2]=x3.
gamma ソースから観測点への単位方向ベクトル γ=(γ1,γ2,γ3) の代入先。 3要素から成る値を未設定の配列を与える。 関数内で値が設定され、 gamma[0]=γ1、 gamma[1]=γ2、 gamma[2]=γ3となる。
Memory into which the unit directional vector from the source to the station, γ=(γ1,γ2,γ3), is to be inserted. Given an array of 3 components without setting the values. Within the function, the values are set such that gamma[0]=γ1, gamma[1]=γ2, and gamma[2]=γ3.


◆戻り値(Return value)

ソースと観測点の間の距離r [m]。
The distance, r [m], from the source to the station.