Code covered by the BSD License  

Highlights from
Animations

image thumbnail

Animations

by

 

09 May 2009 (Updated )

Some animation in MATLAB

[xd,yd]=transform2d(x,y,tx,ty,phi,xr,yr,sx,sy)
function [xd,yd]=transform2d(x,y,tx,ty,phi,xr,yr,sx,sy)
xd=sx*x.*cos(phi)-sy*y.*sin(phi)+xr.*(1-sx*cos(phi))+sy*yr.*sin(phi)+tx;
yd=sx*x.*sin(phi)+sy*y.*cos(phi)+yr.*(1-sy*cos(phi))-sx*xr.*sin(phi)+ty;

Contact us