📄 object_draw.m
字号:
function h = object_draw( obj, c )
% h = object_draw( obj, c )
% draw object obj which is in homogeneous coordinates
% c is an optianl parametr which, if supplied, specified the colour of the drawing
% return a handle to the drawing
% get the oridinary cooridinates
img = obj(1:2,:) ./ repmat( obj(3,:), 2,1 );
% draw it
h = plot( img(1,:), img(2,:) );
if nargin == 2
set(h,'Color',c);
end
return;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -