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

Class Euler


The Euler object

This object gives access to Eulers in Blender.
Method Summary
Euler object __init__(list)
Create a new euler object.
Matrix object toMatrix()
Return a matrix representation of the euler.
Quaternion object toQuat()
Return a quaternion representation of the euler.
  unique()
Calculate a unique rotation for this euler.
  zero()
Set all values to zero.

Class Variable Summary
  x: The heading value in degrees.
  y: The pitch value in degrees.
  z: The roll value in degrees.

Method Details

__init__(list=None)
(Constructor)

Create a new euler object.

Example:
 euler = Euler([45,0,0])
Parameters:
list - 3d list to initialize euler
           (type=PyList of float/int)
Returns:
Euler representing heading, pitch, bank.
           (type=Euler object)

Note: Values are in degrees.

toMatrix()

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

toQuat()

Return a quaternion representation of the euler.
Returns:
Quaternion representation of the euler.
           (type=Quaternion object)

unique()

Calculate a unique rotation for this euler.

zero()

Set all values to zero.

Class Variable Details

x

The heading value in degrees.

y

The pitch value in degrees.

z

The roll value in degrees.

Generated by Epydoc 2.1 on Thu Aug 12 21:47:29 2004 http://epydoc.sf.net