cross
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: > 1.22
Description Take cross product of input vectors
Arguments and Return Values Parameters: Two 3x1x1 numeric arrays specifying two vectors (in Cartesian coordinates) Return Value: A 3x1x1 array giving the cross product of the input vectors
Usage Syntax: cross(a, b) Both inputs should be 3x1x1 numeric arrays, specifying the x, y, and z components (respectively) of the vectors. However, if a vector's z component is zero, you can enter it as a 2x1x1 array, and if its y and z components are both zero, you can enter it as a scalar (1x1x1). When cross() is entered without any arguments, it prints its description, as shown below.
Examples dv> cross() Cross product (a.k.a outer product, vector product) cross(a, b) a and b should be 3x1x1 numeric arrays However, you can omit the final elements if their values are zero, e.g. [1, 1] is interpreted as [1, 1, 0] S.Marshall 03-06-2008 0 dv> cross(1//0//0, 0//1//0) 3x1x1 array of int, bsq format [12 bytes] 0 0 1 dv> cross(1, 0//1) 3x1x1 array of int, bsq format [12 bytes] 0 0 1 dv> cross(0//0//1, 1//0//0) 3x1x1 array of int, bsq format [12 bytes] 0 1 0 dv> a = clone(1, 3, 2) 3x2x1 array of int, bsq format [24 bytes] 1 1 1 1 1 1 dv> cross(0//0//1, a) Both inputs should be 3x1x1 0 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Major Sub-Functions
Related Functions
Recent Library Changes Created On: 11-17-2009 |