./
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
24 / 24
100.0%
Branches:
-
-%
Functions:
4 / 4
100.0%

include/terraingen/geometry/geometry_fields.h
Line Branch Exec Source
1 // SPDX-License-Identifier: BSD-3-Clause
2
3 /// @file
4 /// @brief The field list of a box.
5 #pragma once
6
7 #include "terraingen/geometry/geometry.h"
8 #include "terraingen/util/option_fields.h"
9
10 namespace terraingen {
11
12 /// The fields of a box: its lower and upper edges.
13 168 template <typename IO> void Fields(IO& io, Bounds2d& box) {
14 168 io("min_x", box.minX, "Lower edge along x.");
15 167 io("min_y", box.minY, "Lower edge along y.");
16 166 io("max_x", box.maxX, "Upper edge along x; above min_x.");
17 166 io("max_y", box.maxY, "Upper edge along y; above min_y.");
18 165 }
19
20 } // namespace terraingen
21