Finding center of 2D triangle?

前端 未结 4 1443
死守一世寂寞
死守一世寂寞 2020-12-09 16:38

I\'ve been given a struct for a 2D triangle with x and y coordinates, a rotation variable, and so on. From the point created by those x and y coordinates, I am supposed to

4条回答
  •  旧巷少年郎
    2020-12-09 16:58

    There are several points in a triangle that can be considered to be its center (orthocenter, centroid, etc.). This section of the Wikipedia article on triangles has more information. Just look at the pictures to get a quick overview.

提交回复
热议问题