ID : 256
TInv
Function
To return inverse matrix of Homogeneous Translation Type data.
Syntax
TInv(homogeneous translation type data)
Guaranteed entry
- Homogeneous translation type data
- Designate Homogeneous Translation Type data.
Return value
Return homogeneous translation type data.
Description
Inverse matrix of Homogeneous Translation Type data is returned.
Attention
If the designated homogeneous translation type data is data that cannot be normalized, an Error level 1 occurs. You may use the "On Error" statement to create an error processing routine. Refer to "On Error."
Example
'!TITLE "Calculation of Inverse Matrix of Homogeneous Translation Type"
' Calculate inverse matrix in the current position
Sub Sample_TInv
Dim aaa As Trans
Dim bbb As Trans
' Acquisition of current position
aaa = CurTrn
' Assign inverse matrix in the current position to bbb
bbb = TInv( aaa )
' Display inverse matrix in the current position on the message window
PrintDbg bbb
End Sub
ID : 256