Define function

Hi,
how we define the function
f(x,y,t=0)= a if |x-x_0|^2+|y-y_0|^2 <= r^2 , 0 else
a,x_0 , y_0 and r are real data.

Thank you in advance

f = ( (x-x0)^2+(y-y0)^2 <= r^2 ? a : 0 )

Thank you so much Julien G