SL_GetTM2D


NAME
SL_GetTM2D -- gets the values out of a 2-d transformation matrix.

SYNOPSIS
SL_GetTM2D(tm, value_array, units);
A0 A1 D0

void SL_GetTM2D(TM2DHANDLE, LONG *, ULONG);

FUNCTION
This allows the user to get all six values that comprise a 2-d
transformation matrix. The value array must have at least six
entries. This is the order of the array as it corresponds to
the matrix:

value_array[0] = matrix[0][0].
value_array[1] = matrix[0][1].
value_array[2] = matrix[1][0].
value_array[3] = matrix[1][1].
value_array[4] = matrix[2][0].
value_array[5] = matrix[2][1].

This is how the matrix entries are used:

[ xscale 0 ]
[ 0 yscale]
[ 0 0 ]

[ cos twist sin twist ]
[ -sin slant cos slant ]
[ 0 0 ]

[ 1 0 ]
[ 0 1 ]
[ xoffset yoffset]

INPUTS
tm - the 2-d transformation matrix to init.
value_array - an array of 6 LONG's the describe the 6 values
of the transformation matrix.
units - The desired units of the values in the value_array.
This must not be zero.

SEE ALSO
SL_ApplyTM2D, SL_CloneTM2D, SL_ConcateTM2D, SL_CopyTM2D, SL_CreateTM2D, SL_DeltaApplyTM2D, SL_FreeTM2D, SL_GetTM2D, SL_InitTM2D, SL_InverseApplyTM2D, SL_InverseDeltaApplyTM2D, SL_InvertTM2D, SL_RotateTM2D, SL_ScaleTM2D, SL_SetTM2D, SL_TranslateTM2D.

 

SL_GetTM2D  Command Section By Type  url:SL_GetTM2D
  created:2008-03-01 23:36:36   last updated:2008-03-01 23:36:36
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For SL_GetTM2D
There are no user contributed comments for this page.