Synopsis

PDX_MSGT gdx_GetRotMatrixFromPlaneNorm(long option, double plane_normal[3], GDX_MATRIX gdx_matrix)

Purpose

Get the GDX plane normal plane rotation matrix

Description

Using the plane normal determines the corresponding 3X3 rotation matrix whose inverse can be used to rotate the plane to the XY plane and stores the rotation matrix in the GDX matrix with the translation vector set to 0.0.

Input

option

Options (Not used)

plane_normal

The plane normal vector

Output

gdx_matrix

The GDX matrix with the 3X3 rotation matrix set

Return

      GDX_NOERR
      Low level error return
      .fi