NASA Logo
Ocean Color Science Software

ocssw V2022
ocorient.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void matmpy (const float xm1[3][3], const float xm2[3][3], float xm3[3][3])
 
void oceuler (float a[3], float xm[3][3])
 

Function Documentation

◆ matmpy()

void matmpy ( const float  xm1[3][3],
const float  xm2[3][3],
float  xm3[3][3] 
)

c Computes matrix product of 3x3 matrices xm1 and xm2

Parameters
xm1R*4 I Input Matrix
xm2R*4 I Input Matrix
xm3R*4 O Output Matrix

Definition at line 5 of file ocorient.c.

◆ oceuler()

void oceuler ( float  a[3],
float  xm[3][3] 
)

c Computes coordinate transformation matrix corresponding to Euler c sequence. The order of angles in the input array is yaw, roll, c pitch; according to OSC, the order of the rotations is the reverse c of this; the roll and pitch angles are about the negative Y and Z c axes, respectively, while the yaw angle is about the positive X axis. c Reference: Wertz, Appendix E; OSC, personal communication c Modification history: c c c Modified to change order of rotations to pitch, roll, yaw (-Z, -Y, -X) c F. S. Patt, GSC, September 29, 1996. c c Removed negative signs on Y and Z rotations for OCTS; order of rotations c is yaw, pitch, roll (Z, Y, X)

Parameters
aR*4 I Input Array of Euler Angles (degrees)
xmR*4 O Output Transformation Matrix

Definition at line 25 of file ocorient.c.