Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Mar 28, 2024
1 parent 71a4074 commit cebad03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geometry/barycentre_calculator_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ template<affine Point, homogeneous_field Weight, std::size_t size>
requires homogeneous_vector_space<Difference<Point>, Weight>
Point Barycentre(Point const (&points)[size], Weight const (&weights)[size]) {
static_assert(size != 0);
BarycentreCalculator<Point, Weight>
calculator;
BarycentreCalculator<Point, Weight> calculator;
for (int i = 0; i < size; ++i) {
calculator.Add(points[i], weights[i]);
}
Expand Down

0 comments on commit cebad03

Please sign in to comment.