logo back up home forward   further reading more topics »

Maths - Vectors - forum discussion

By: Nobody/Anonymous - nobody
file Direction of cross product vector is wrong  
2005-04-17 08:24

The direction of the cross product vector in this diagram is the opposite of what it should be. i.e. AxB points in the opposite direction. 
 
http://www.euclideanspace.com/maths/algebra/vectors/crossProduct.gif

By: Richard - redeyes2003
file RE: Direction of cross product vector is wrong  
2005-04-17 23:56

Cross product is a mathematical convention where X, Y and Z are concerned 
 
Given one conventional definition for the crossproduct x, we have 
X = Y x Z 
Y = Z x X 
Z = X x Y 
 
Drawing axes is also another convention, a pictorial one. If you use the crossproduct convention above (purely mathematical) with a pictorial convention similar to DirectX (the coordinate system is stated with y upwards, x to the right and z forward) then the mathematical convention must be represented by the pictorial convention, eg AxB = C and like X x Y= Z then C must be in the same picture representation as Z. 
 
Note you can change the pictorial convention without changing the mathematical convetion. If OpenGl coordinate system is used then it is a mirror picture of the DirectX system, but C and Z still coincides. 
 
Note you could change the mathematical convention 
X = Z x Y 
Y = X x Z 
Z = Y x X 
Here mathematically the result is different 
 
Everything is ok when you stick to one convention throughout your representation :) I have not read through all of the context from 
http://www.euclideanspace.com/maths/algebra/vectors/ 
but the diagram is just on element out of the entire context, so I cant agree or disagree with you

By: Martin Baker - martinbaker
file RE: Direction of cross product vector is wron  
2005-04-18 07:35

Thanks very much for the correction I have updated the page. 
 
As Richard pointed out the problem was that I drew the diagram with a left hand coordinate system although I am standardising the site with a right hand coordinate system (for compatibly with OpenGL and X3D). I have redrawn the diagram with a right hand coordinate system and because it is difficult to represent the 3 dimensions I have added an example. 
 
Although both right and left hand conventions are commonly used for the coordinate systems, does anyone know if it is common to use different conventions for cross products? 
 
Thanks for your help, 
 
Martin


metadata block
see also:
Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Introduction to 3D Game Programming with DirectX 9.0 - This is quite a small book but it has good concise information with subjects like, maths introduction and picking.

cover Mathematics for 3D game Programming - Includes introduction to Vectors, Matrices, Transforms and Trigonometry. (But no euler angles or quaternions). Also includes ray tracing and some linear & rotational physics also collision detection (but not collision response).

Other Math Books

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

 

cover Dark Basic Professional Edition - It is better to get this professional edition

cover This is a version of basic designed for building games, for example to rotate a cube you might do the following:
make object cube 1,100
for x=1 to 360
rotate object 1,x,x,0
next x

cover Game Programming with Darkbasic - book for above software

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

Terminology and Notation

Specific to this page here:

 

program

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2008 Martin John Baker - All rights reserved.