Code covered by the BSD License  

Highlights from
FELICITY

image thumbnail

FELICITY

by

 

21 Apr 2011 (Updated )

Finite ELement Implementation and Computational Interface Tool for You

d=dist_circle(p,xc,yc,r)
function d=dist_circle(p,xc,yc,r)

%   analytic formula for the oriented distance function of a circle
%   Note: negative inside.

d=sqrt((p(:,1)-xc).^2+(p(:,2)-yc).^2)-r;

Contact us