# Synopsis

PDX_MSGT gdx_ApplyMatrix4D(long option, long npnts, GDX_MATRIX matrix, PDX_BOOL rational, double (*points)[4], double (*applied)[4])

# Purpose

Apply GDX 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

### GDX_TRANSPOSE

Use transpose of matrix

### GDX_ROTONLY

Apply matrix rotation only

## 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

GDX_NOERR