Get the 3 points of the Triangle and find out how long each line is. Use the distance formula 3 times on the three sets of points. The sum of the lengths of each line segment will be the perimeter of your triangle.