diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2021-05-14 19:46:19 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2021-05-17 19:12:40 +0300 |
commit | a86e815dd86fb77d910bbc857106bedb4b691874 (patch) | |
tree | 5f62c14896e7e5cc71c679d30d35f45f427acf4f /release | |
parent | f09606cc68bd28abb8229d1e5c1ad6fe351cf4f7 (diff) |
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
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions