Synopsis

PDX_MSGT imth_ApplyMatrix4D(long option, int npnts, IMTH_MATRIX matrix, PDX_BOOL rational, double (*points)[4], double (*applied)[4])

Purpose

Apply IGES matrix to a list of 4D points.

Description

This function will apply the rotation and translation to the specified 4D homogeneous points. The input and output points can be at the same location.

Input

option

IMTH_TRANSPOSE

Use transpose of matrix

npnts

Number of points to apply matrix to

matrix

Matrix to apply

rational

Rational points flag: PDX_TRUE - points are rational, PDX_FALSE - points are non-rational (all weights the same)

points

4D points to be rotated and translated

Output

applied

Rotated and translated points

Return

IMTH_NOERR