Lost Adventurer, Aleks Kirilenko (3D)
LC #42 Pipers Alley

View Full Version : cross product in higher dimensions

11-28-2006, 03:32 PM
I'm trying to help the guy with his VD (voronoi delauany) problem, but I am rusty on my cross product in dimensions greater then 3.

Given two vectors u and v in 4 coordinate space. What is the cross product? I have as my result the vector:

u2 * v3 - v2 * u3 ,
u3 * v4 - v3 * u4 ,
u4 * v1 - v4 * u1 and
u1 * v2 - v1 * u2

Is this correct?

11-28-2006, 06:13 PM
Take a look at Wikipedia, especially here:



11-28-2006, 07:15 PM

I don't know if you're using MEL or the API. But, if you're using mel here is a procedure that will help you out:

global proc float[] gt4DCross(float $u[],float $v[]) {

11-28-2006, 08:14 PM
yeah, that proc is exactly what I need.....I knew I was missing terms in each of the coordinates...

CGTalk Moderation
11-28-2006, 08:14 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.