Mathutils Module -- Blender Game Engine 2.49b


Class index  __

Method index  __

Mathutils index  __

Euler index  __

Matrix index  __

Quaternion index  __

Vector index  __


 




CrossQuats

CrossQuats(quat1, quat2)

Return the cross product of two quaternions.

Return Type:  Quaternion

quat1:
Type:  Quaternion
quat2
Type:  Quaternion

Sample Code

# import Mathutils
import Mathutils

# create 1st Quaternion 
quat1= Mathutils.Quaternion(1.0, 2.0 ,3.0 ,4.0 )

# create 2nd Quaternion 
quat2= Mathutils.Quaternion(5.0, 6.0 ,7.0 ,8.0 )

# use cross product to create a new Quaternion 
quatCross = Mathutils.CrossQuats(quat1, quat2)

 
The Blender Game engine uses the Python programming language to extent the capabilities of the game engine.  The Python programming language is open source and free to use, even for commercial products.  Python is a multi-platform programing language that runs on Windows, Linux/Unix and Mac OS X operating systems.  A general-purpose programming language, Python is a high-level, dynamic, object-oriented language that beginners find easy to learn.