I'm trying to represent balls in radial metric using pgfplots and tikz.
Radial metric is a metric d in R^2 given by:
d( (a,b), (x,y) ) = p( (a,b), (x,y) ) if bx = ay
d( (a,b), (x,y) ) = p( (a,b), (0,0) ) + p( (0,0), (x,y) ) if bx =/= ay
Where p is the euclidean distance, so you can rewrite it as follows:
d( (a,b), (x,y) ) = sqrt( (x-a)^2 + (y-b)^2 ) if bx = ay
d( (a,b), (x,y) ) = sqrt(a^2 + b^2) + sqrt(x^2 + y^2) if bx =/= ay
I've graphicated in desmos, you can see the form of any ball by any center of radius here
I'd like to write a general expression for those balls, in such a way that if I want to plot two different balls, in order to plot the second one, the only thing I have to do is to change the center and the radius of the first one.
I've read some posts about plotting an implicit function using tikz, but I can't see the way that could help me.
