![]() Since skew-symmetric 3x3 matrices have only 3 independent components (the ones above the diagonal), cross-product of 3D vectors is naturally represented as Vector3. In general, cross product of N dimensional vectors is a skew-symmetric NxN matrix with i,j-th entry equal, up to the sign, v*w-v*w. ![]() Or, to put it differently, cross product of (v1, v2) and (w1, w2) should be the 3rd coordinate of the cross product of (v1, v2, 0) and (w1, w2, 0). The result should be a scalar equal to the signed area of a parallelepiped spanned by the input vectors. ![]() In particular, cross product of vectors of size 2 is very useful in computational geometry. I would like to request a cross product of 2D vectors.Įigen defines cross product only for vectors of size 3 however, cross product is defined (although under a different name) for vectors of arbitrary equal sizes.
0 Comments
Leave a Reply. |