R3DirToHP

FUNCTION:

R3DirToHP

TEMPLATE:

extern R3FLOAT R3DirToHP(R3FLOAT *h,struct r3vector *z);

PARAMETERS:

HPB angle coordinate support functions. H, P and B define three rotations, such that any orthogonal coordinate system (x2, y2, z2) can be specified. H = Heading: how much z is rotated around y axis so that the result z1 points to z2's projection to zx plane. P = Pitching: how much z1 is rotated around rotated x axis x1 so that the direction z2 is obtained.. B = Banking: how much rotated x1 and y1 are rotated around z2 so that x1 becomes x2. All angles are given as radians and positive direction is counterclockwise direction when looking against rotation axis.

RETURN VALUE:

HPB angle coordinate support functions. H, P and B define three rotations, such that any orthogonal coordinate system (x2, y2, z2) can be specified. H = Heading: how much z is rotated around y axis so that the result z1 points to z2's projection to zx plane. P = Pitching: how much z1 is rotated around rotated x axis x1 so that the direction z2 is obtained.. B = Banking: how much rotated x1 and y1 are rotated around z2 so that x1 becomes x2. All angles are given as radians and positive direction is counterclockwise direction when looking against rotation axis.

DESCRIPTION:

HPB angle coordinate support functions. H, P and B define three rotations, such that any orthogonal coordinate system (x2, y2, z2) can be specified. H = Heading: how much z is rotated around y axis so that the result z1 points to z2's projection to zx plane. P = Pitching: how much z1 is rotated around rotated x axis x1 so that the direction z2 is obtained.. B = Banking: how much rotated x1 and y1 are rotated around z2 so that x1 becomes x2. All angles are given as radians and positive direction is counterclockwise direction when looking against rotation axis.