Synopsis

PDX_MSGT imth_ApplyEntityMatrix4D(long option, int npnts, void *entity, PDX_BOOL rational, double (*points)[4], double (*applied)[4])

Purpose

Apply IGES entity matrix to a list of 4D homogeneous points.

Description

This function will apply the IGES matrices in the specified entity DE data to the specified 4D homogenous points. The input and output points can be at the same location. This function should be used to transform the GDX NURBS control points.

Input

option

IMTH_TRANSPOSE

Use transpose of matrix

npnts

Number of points to apply matrix to

entity

Pointer to IGES entity

rational

Flag to indicate if the points are rational

points

Homogeneous points to be rotated and translated

Output

applied

Rotated and translated homogeneous points

Return

      IMTH_NOERR
      Low level error return
      .fi