📄 sdf2circle.m
字号:
function f = sdf2circle(nrow,ncol, ic,jc,r)
% computes the signed distance to a circle
% input nrow: number of rows
% ncol: number of columns
% (ic,jc): center of the circle
% r: radius of the circle
% output f: signed distance to the circle
[X,Y] = meshgrid(1:ncol, 1:nrow);
f = sqrt((X-jc/3).^2+(Y-ic/3).^2)-r;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -