QMedia Matrix commands


QM_RotateMatrix(matrixRec; numDegrees; anchorH; anchorV):error
matrixRec Array real Matrix record
numDegrees Real Number of degrees
anchorH Real Horizontal coordinate of the anchor point
anchorV Real Vertical coordinate of the anchor point
error Longint Error result

Adds a rotation transformation to a matrix record.

Parameter matrixRec specifies the matrix. It must be declared as a 3 x 3 array of reals. QMedia updates and returns the contents matrixRec with the specified rotation operation.

Parameter numDegrees specifies the number of degrees of the rotation operation.

Parameters anchorH and anchorV specify the horizontal and vertical coordinates of the anchor point.


  `Rotate track ID $trackID of movie $movie by 30 degrees around its center
ARRAY REAL($matrix;3;3)
$err:=QM_SetIdentityMatrix ($matrix)
$err:=QM_GetTrackDimensions ($movie;$trackID;$trachWidth;$trackHeight)
$degrees:=30 `Rotate 30 degrees
$hAnchor:=$trachWidth/2 `Anchor at center of track
$err:=QM_RotateMatrix ($matrix;$degrees;$hAnchor;$vAnchor)
$err:=QM_SetTrackMatrix ($movie;$trackID;$matrix)

Related commands

QM_SetIdentityMatrix Sets the contents of a matrix record to the identity matrix.
QM_TranslateMatrix Adds a translation transformation to a matrix record.
QM_ScaleMatrix Adds a scaling transformation to a matrix record.
QM_SkewMatrix Adds a skew transformation to a matrix record.
QM_ConcatMatrix Concatenates two matrices.
QM_SetTrackMatrix Changes the track's transormation matrix.
QM_GetTrackMatrix Returns the track's transormation matrix.

QMedia © Escape OE
Generated by QDoc 2.8 on Thu, Nov 24, 2011 18:43:50