| 121 | |
| 122 | template < typename PointType, index_t dimension > |
| 123 | Point< dimension > |
| 124 | GenericPolygon< PointType, dimension >::barycenter() const |
| 125 | { |
| 126 | Point< dimension > barycenter; |
| 127 | for( const auto& point : vertices_ ) |
| 128 | { |
| 129 | barycenter += point; |
| 130 | } |
| 131 | return barycenter / nb_vertices(); |
| 132 | } |
| 133 | |
| 134 | template < typename PointType, index_t dimension > |
| 135 | template < index_t T > |
no outgoing calls