Notifications
Clear all

[Closed] PreTranslate

 MZ1

What is difference between

translate <matrix3> <point3>

and

preTranslate <matrix3> <point3>

?

4 Replies

pretranslate is equivalent to a local space translation

$.transform = pretranslate $.transform [10,0,0]

move 10 along local x, where as translate would be a world space shift

$.transform = translate $.transform [10,0,0]

move 10 along world x

1 Reply
 MZ1
(@mz1)
Joined: 1 year ago

Posts: 0

so with this logic Pre means local? PreRotate would be rotate in local coordinate?

yes prerotate would be equivalent to a local rotation but the “pre” refers to multiply on the left

tm * pt 

as opposed to

pt * tm 

‘pre’ means in the matrix own space. with no ‘pre’ is in world space