Synopsis

PDX_MSGT mth_FindTwoPerpAxesToAxis(long option, MTH_3DVEC vec_z, MTH_3DVEC vec_x, MTH_3DVEC vec_y)

Purpose

Find two perpendicular vectors (unit) to a unit vector

Description

Find two perpendicular vectors (unit) to a unit vector so that the three vectors will form a right hand coordinate system in which the input vector will be Z axis and thwo new ones X and Y axes.

Input

option

Options (not used)

vec_z

The input vector (unit)

Output

vec_x

The first output vector (unit)

vec_y

The second output vector (unit)

Return

      MTH_NOERR
      Low level error return
      .fi