Hi,
Using TranslationMatrix is giving me quite a hard time.
## --- example code
v_a = Blender.Mathutils.Vector(1, 0, 0 ,0)
v_b = Blender.Mathutils.Vector(0, 1, 0 ,0)
m_t = Blender.Mathutils.TranslationMatrix(v_a)
print(m_t)
gives
[1.000000, 0.000000, 0.000000, 0.000000](matrix [row 0])
[0.000000, 1.000000, 0.000000, 0.000000](matrix [row 1])
[0.000000, 0.000000, 1.000000, 0.000000](matrix [row 2])
[1.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
that looks much like the transpose of what I would have expected…
I proceed anyway, following the documentation, and I multiply the vector by the matrix
(I would have rather done Mv rather vM but since we already have
a transpose, I assume that what I know does not apply to the python API…)
print(v_b * m_t)
Ouch, I get my vector v_b untouched:
[0.000000, 1.000000, 0.000000](vector)
Assuming that the doc is not accurate I try:
m_t.transpose()
m_t * v_b
Still the same:
[0.000000, 1.000000, 0.000000](vector)
Anyone with an advice ?
Thanks,
rm.