Synopsis

PDX_MSGT mth_ApplyRotMatrixVector(long option, double matrix[3][3], double in_vector[3], double out_vector[3])

Purpose

Apply a 3X3 rotation matrix to a vector.

Description

This function will apply a 3X3 rotation matrix to a 3D vector. The input and output vector can be at the same address.

Input

option

MTH_TRANSPOSE

Use transpose of matrix

matrix

3X3 rotation matrix to apply

in_vector

The input vector to be rotated

Output

out_vector

Rotated vector

Return

MTH_NOERR