📄 rotate2.m
字号:
function newpoints=rotate2(points,origo,phi)
%ROTATE2 rotate points in 2 dimensions.
% NEWPOINTS=ROTATE(POINTS,ORIGO,PHI) rotates the points in POINTS PHI radians around the ORIGO point.
% ROTATE returns NEWPOINTS as the rotated points from POINTS.
% Copyright(c) 2000-05-14 by B. Rasmus Anthin.
A=[cos(phi) -sin(phi);sin(phi) cos(phi)];
newpoints=A*points+origo*ones(1,size(points,2));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -