Blender Git Commit Log

Git Commits -> Revision a86e815

Revision a86e815 by Alexander Gavrilov (master)
May 17, 2021, 16:12 (GMT)
Mathutils: add a Matrix.LocRotScale constructor for combining channels.

Combining location, rotation and scale channels into a matrix is
a standard task, so while it is easily accomplished by constructing
and multiplying 3 matrices, having a standard utility allows for
more clear code.

The new constructor builds a 4x4 matrix from separate location,
rotation and scale values. Rotation can be represented as a 3x3
Matrix, Quaternion or Euler value, while the other two inputs
are vectors. Unneeded inputs can be replaced with None.

Differential Revision: https://developer.blender.org/D11264

Commit Details:

Full Hash: a86e815dd86fb77d910bbc857106bedb4b691874
Parent Commit: f09606c
Lines Changed: +134, -2

1 Added Path:

/doc/python_api/examples/mathutils.Matrix.LocRotScale.py (+5, -0) (View)

3 Modified Paths:

/doc/python_api/examples/mathutils.Matrix.py (+5, -1) (Diff)
/source/blender/python/mathutils/mathutils_Matrix.c (+102, -0) (Diff)
/tests/python/bl_pyapi_mathutils.py (+22, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021