>  Docs Center  >  Libraries  >  JBIU  >  JBCROSSP
Libraries

JBCROSSP

JBCROSSP

Name


    JBCROSSP

Purpose


    Calculate the cross products between two arrays of 3-vectors.

Category


    Math

Calling Sequence


    Result = JBCROSSP(V1, V2)

Inputs


    V1: First 3xN array.
    V2: Second 3xN array.

Outputs


    A 3xN array, where each Result[*,i] 3-vector is equal to
    CROSSP(V1[*,i], V2[*,i]).

Example


    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

Modification History


    Written by: Jeremy Bailin
    12 June 2008 Public release in JBIU



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
My Account    |    Contact Us