Package pyffi :: Package formats :: Package nif :: Class NifFormat :: Class Matrix33
[hide private]
[frames] | no frames]

Class Matrix33

source code

                  object --+                
                           |                
      utils.graph.DetailNode --+            
                               |            
          utils.graph.GlobalNode --+        
                                   |        
object_models.xml.struct_.StructBase --+    
                                       |    
                     NifFormat._Matrix33 --+
                                           |
                                          NifFormat.Matrix33

Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]
 
as_list(self)
Return matrix as 3x3 list.
source code
 
as_tuple(self)
Return matrix as 3x3 tuple.
source code
 
__str__(self)
str(x)
source code
 
set_identity(self)
Set to identity matrix.
source code
 
is_identity(self)
Return True if the matrix is close to identity.
source code
 
get_copy(self)
Return a copy of the matrix.
source code
 
get_transpose(self)
Get transposed of the matrix.
source code
 
is_scale_rotation(self)
Returns true if the matrix decomposes nicely into scale * rotation.
source code
 
is_rotation(self)
Returns True if the matrix is a rotation matrix (a member of SO(3)).
source code
 
get_determinant(self)
Return determinant.
source code
 
get_scale(self)
Gets the scale (assuming is_scale_rotation is true!).
source code
 
get_scale_rotation(self)
Decompose the matrix into scale and rotation, where scale is a float and rotation is a C{Matrix33}.
source code
 
set_scale_rotation(self, scale, rotation)
Compose the matrix as the product of scale * rotation.
source code
 
get_scale_quat(self)
Decompose matrix into scale and quaternion.
source code
 
get_inverse(self)
Get inverse (assuming is_scale_rotation is true!).
source code
 
__mul__(self, rhs) source code
 
__div__(self, rhs) source code
 
__truediv__(self, rhs) source code
 
__rmul__(self, lhs) source code
 
__eq__(self, mat) source code
 
__ne__(self, mat) source code
 
__sub__(self, x) source code
 
sup_norm(self)
Calculate supremum norm of matrix (maximum absolute value of all entries).
source code

Inherited from object_models.xml.struct_.StructBase: __init__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, tree, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...

Inherited from _Matrix33 (private): _attrs, _names

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]

Inherited from _Matrix33: m_11, m_12, m_13, m_21, m_22, m_23, m_31, m_32, m_33

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

get_scale_rotation(self)

source code 
Decompose the matrix into scale and rotation, where scale is a float and rotation is a C{Matrix33}. Returns a pair (scale, rotation).

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2c105d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c10690>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c106d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c10750>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c10790>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c107d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c10810>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c10890>,
...