<< Prev        Next >>

ID : 3918

Cross

Function

To return an outer product calculation result of vector type data.

Syntax

Cross(vector,vector)

Guaranteed Entry

Vector
Designate vector type data.

Return Value

Return an outer product calculation result by vector type data.

Description

An outer product calculation result of vector type data is returned.

Outer product calculation is a calculation to obtain a normal vector against aspect. This is useful to obtain a point perpendicular to an aspect.

Related Terms

Dot

Attention

-

Example

'!TITLE "Cross Product Calculation of Vector Type Coordinates"
' Perform cross product calculation and assign the result to bbb
Sub Sample_Cross

  Dim aaa As Vector
  Dim bbb As Vector

  aaa = V( 40, 5.5, 60 )

  ' Perform cross product calculation of aaa coordinate position and V(-10,20,30) and assign the 
result to bbb bbb = Cross( aaa, V( -10, 20, 30 ) ) ' Display calculation result on the message output window PrintDbg bbb End Sub

ID : 3918

<< Prev        Next >>