Module Mathutils :: Class Quaternion
[frames | no frames]

Class Quaternion


The Quaternion object

This object gives access to Quaternions in Blender.
Method Summary
  conjugate()
Set the quaternion to it's conjugate.
  identity()
Set the quaternion to the identity quaternion.
  inverse()
Set the quaternion to it's inverse
  negate()
Set the quaternion to it's negative.
  normalize()
Normalize the quaternion.
Euler object toEuler()
Return Euler representation of the quaternion.
Matrix object toMatrix()
Return a matrix representation of the quaternion.

Class Variable Summary
  angle: A scalar representing the amount of rotation in degrees.
  axis: Vector representing the axis of rotation.
  magnitude: The magnitude of the quaternion.
  w: The w value.
  x: The x value.
  y: The y value.
  z: The z value.

Method Details

conjugate()

Set the quaternion to it's conjugate.

identity()

Set the quaternion to the identity quaternion.

inverse()

Set the quaternion to it's inverse

negate()

Set the quaternion to it's negative.

normalize()

Normalize the quaternion.

toEuler()

Return Euler representation of the quaternion.
Returns:
Euler representation of the quaternion.
           (type=Euler object)

toMatrix()

Return a matrix representation of the quaternion.
Returns:
A rotation matrix representation of the quaternion.
           (type=Matrix object)

Class Variable Details

angle

A scalar representing the amount of rotation in degrees.

axis

Vector representing the axis of rotation.

magnitude

The magnitude of the quaternion.

w

The w value.

x

The x value.

y

The y value.

z

The z value.

Generated by Epydoc 2.0 on Wed May 12 22:11:02 2004 http://epydoc.sf.net