# Centroid of a triangle

The centroid of a triangle is the point where the three medians of a triangle meet or cross an illustration of the barycenter is shown below.

In the chart above, we call each line (in blue) a median of triangle.

The median is the line that starts with a vertex and goes in the opposite side

After you build the three medians, to the point where they cross (shown in red) is the centroid

Now, if you place a triangle on the coordinate system, you can easily get the barycenter in a simple calculation

Call the centroid C, the formula for the barycenter is:

[(1_x_+_x_2_+_x_3) / 3, (y1 + y2 + y3) / 3]

Example:

Find the centroid of triangle following with veetices (1,2), (3,4) and (5.0)

C = [(1_+_3_+_5) / 3, (2 + 4 + 0) / 3] = (9/3, 6/3) = (3.2)
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://toolsmathematics.wordpress.com/2011/07/04/centroid-of-a-triangle/", "fetch_time": 1521531667000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-13/segments/1521257647322.47/warc/CC-MAIN-20180320072255-20180320092255-00644.warc.gz", "warc_record_offset": 706054690, "warc_record_length": 13300, "token_count": 241, "char_count": 780, "score": 4.0, "int_score": 4, "crawl": "CC-MAIN-2018-13", "snapshot_type": "latest", "language": "en", "language_score": 0.8637735247612, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00039-of-00064.parquet"}