### Cross Product (3by1 vector)

Posted:

**Tue Mar 09, 2010 2:31 am**GMAT Function name: cross3by1.gmf

Summary: Calculates the cross product of two 3by1 vectors

Latest Compatible Source code date: 12/23/2009

Depends on the following GMAT functions: none

Function inputs:

Examples from calling script:

Summary: Calculates the cross product of two 3by1 vectors

Latest Compatible Source code date: 12/23/2009

Depends on the following GMAT functions: none

Function inputs:

- 3x1 array
- 3x1 array

- 3x1 array

- Code: Select all
`[out1] = cross3by1(in1,in2)`

Examples from calling script:

- Code: Select all
`% Object Creation`

Create Array in1[3,1] in2[3,1] out1[3,1];

% Begin Mission Sequence

BeginScript;

EndScript; % Ensures start of mission sequence in main script

in1(1,1) = 4;

in1(2,1) = -2;

in1(3,1) = 1;

in2(1,1) = 0.1;

in2(2,1) = 5;

in2(3,1) = 3;

[out1] = cross3by1(in1,in2); % Call GMAT Function