PDA

View Full Version : CP



Gelero
08-21-2001, 04:42 PM
Well, can you tell me the crossproduct equation???

http://www.opengl.org/discussion_boards/ubb/biggrin.gif

zed
08-21-2001, 05:31 PM
inline VECTOR CROSSPRODUCT( const VECTOR &v1, const VECTOR &v2 )
{
return VECTOR( (v1.y * v2.z) - (v2.y * v1.z),
(v1.z * v2.x) - (v2.z * v1.x),
(v1.x * v2.y) - (v2.x * v1.y) );
}