math/
jbcrossp.pro
top source jbcrossp
Math
Calculate the cross products between two arrays of 3-vectors.
Return value
A 3xN array, where each Result[*,i] 3-vector is equal to CROSSP(V1[*,i], V2[*,i]).
Parameters
- v1 in
First 3xN array.
- v2 in
Second 3xN array.
Examples
IDL> a = [ [0.1, -1.0, 3.5], [-1.0, -1.0, 4.0] ]
IDL> b = [ [0.2, -2.0, 7.0], [2.5, -2.5, 1.0] ]
IDL> PRINT, JBCROSSP(a,b)
0.00000 0.00000 0.00000
9.00000 11.0000 5.00000
Author information
- History:
Written by: Jeremy Bailin 12 June 2008 Public release in JBIU
File attributes
| Modification date: | Wed Apr 15 16:07:56 2009 |
| Lines: | 49 |
![[attach.png]](../idldoc-resources/attach.png)