# Synopsis

PDX_MSGT igeo_GetRotMatrixFromPnts(long option, long npnts, MTH_3DPNT *pnts, IMTH_MATRIX matrix)

# Purpose

Get the IGES point plane rotation matrix

# Description

Using the first three non-coincident, non-colinear points determines the corresponding 3X3 rotation matrix whose inverse can be used to rotate the points to the XY plane and stores the rotation matrix in the IGES 3X4 matrix with the translation vector set to 0.0.

# Input

## option

Options (not used)

## npnts

The number of points in the pnts array

## pnts

The XYZ 3D points array

# Output

## matrix

The IGES 3X4 matrix with the 3X3 rotation matrix set.

# Return

          IMTH_NOERR
          Low level error return
          .fi