<< Prev        Next >>

ID : 259

TMul

Function

To return the product of homogeneous translation type data.

Syntax

TMul(homogeneous translation type data, homogeneous translation type data)

Guaranteed entry

Homogeneous translation type data
Designate homogeneous translation type data.

Return value

Return the product by homogeneous translation type data.

Description

The product of homogeneous translation type data is returned.

Related Terms

TInv, TNorm

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 Homogeneous Translation Type"
' Calculation of homogeneous translation type coordinate position at 2 points
Sub Sample_TMul

  TakeArm Keep = 1

  Dim aaa As Trans
  Dim bbb As Trans
  Dim ccc As Trans

  ' Assign the homogeneous translation type coordinate position to aaa
  aaa = T ( 800, 200, 350, 0, 0, 1, 0, 1, 0, -1 )

  ' Assign the result of conversion from position type (100,200,50,0,0,0) coordinate position into
homogeneous translation type to bbb bbb = P2T( P( 100, 200, 50, 0, 0, 0, -1 ) ) ccc = TMul( aaa, bbb ) ' Display calculation result on the message output window PrintDbg ccc End Sub

ID : 259

<< Prev        Next >>