5.3.2. nvector.rotation.n_E2R_EN

n_E2R_EN(n_E, R_Ee=None)[source]

Returns the rotation matrix R_EN from n-vector.

Parameters
n_E: 3 x n array

n-vector [no unit] decomposed in E

R_Ee3 x 3 array

rotation matrix defining the axes of the coordinate frame E.

Returns
R_EN: 3 x 3 x n array

The resulting rotation matrix [no unit] (direction cosine matrix).