M-File Help: transl2 View code for transl2

transl2

Create or unpack an SE(2) translational homogeneous transform

Create a translational SE(2) matrix

T = transl2(x, y) is an SE(2) homogeneous transform (3x3) representing a pure translation.

T = transl2(p) is a homogeneous transform representing a translation or point p=[x,y]. If p (Mx2) it represents a sequence and T (3x3xM) is a sequence of homogenous transforms such that T(:,:,i) corresponds to the i'th row of p.

Extract the translational part of an SE(2) matrix

p = transl2(T) is the translational part of a homogeneous transform as a 2-element column vector. If T (3x3xM) is a homogeneous transform sequence the rows of p (Mx2) are the translational component of the corresponding transform in the sequence.

Notes

See also

SE2.t, rot2, ishomog2, trplot2, transl


 

© 1990-2014 Peter Corke.