File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ int main() {
3434 int min_height = *std::min_element (heights.begin (), heights.end ());
3535
3636 // Build rings, diminishing up to pyramid height
37- mcpp::Coordinate base_pt = heights.base_pt ().withHeight (min_height);
37+ mcpp::Coordinate base_pt = heights.base_pt ().with_height (min_height);
3838 int side_len = pyramid_base_len;
3939 for (int i = 0 ; i < PYRAMID_HEIGHT; i++) {
4040 make_ring (base_pt + mcpp::Coordinate (i, i, i), side_len - (i * 2 ));
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ struct Coordinate2D {
142142 * @param coord The Coordinate2D object.
143143 * @param y The y value.
144144 */
145- constexpr Coordinate withHeight (int y) const ;
145+ constexpr Coordinate with_height (int y) const ;
146146
147147 /* *
148148 * @brief Adds two Coordinate2D objects.
@@ -201,7 +201,7 @@ struct Coordinate2D {
201201 int z;
202202};
203203
204- constexpr Coordinate Coordinate2D::withHeight (int y) const {
204+ constexpr Coordinate Coordinate2D::with_height (int y) const {
205205 return Coordinate (this ->x , y, this ->z );
206206}
207207
You can’t perform that action at this time.
0 commit comments