I am developing a system, and generally in this system we examine the effect of a number of factors on our data. We choose to use Barycentric coordinates to help us to achieve that. I have no problem with representing these factors with barycentric coordinates as in the following figure:

My only concern is to determine the distance between any point inside the triangle and the center of the triangle (in the figure it is label as P). I know how to do this with Cartesian coordinates but in the case of barycentric coordinates I guess it is different. I hope that someone can help me with this. I would also appreciate if the answer is explained in a simple way (with example if possible) as iam a software engineer and not a mathematician.
Thank you
Let the barycentric coordinates be $(u,v,w)$ with as usual $u+v+w=1.$ If your point is interior to (or on the edge of ) the triangle we also have $u,v,w \ge 0.$
Now if we choose to map to the equilateral triangle in the $x,y$ plane with vertices $A'=(-1,0),\ B'=(1,0),\ C'=(0,\sqrt{3})$ then the barycentric point $X:(u,v,w)$ gets mapped into $u\cdot (-1,0)+v\cdot(1,0)+w \cdot(0,\sqrt{3})$ i.e into $$X':(v-u, w\sqrt{3}).$$ In particular the barycentric $P(1/3,1/3,1/3)$ ends up at $P':(0,(1/3)\sqrt{3}).$ Then the distance from $X'$ to $P'$ by the usual distance formula sqrt[(delta x)^2+(delta y)^2] becomes $$d(X',P')=\sqrt{(v-u)^2+3\cdot(w-1/3)^2}.$$