Triangle Perimeter

Here is the mathematical way, how to calculate the center of three points (which define a circle).