42 double flowEast = 0.0;
50 WaterMap(
int rows,
int cols,
double northMin,
double eastMin,
double spacing, std::vector<float> cells);
58 static std::shared_ptr<const WaterMap>
Load(
const std::string& jsonPath);
64 int Rows()
const {
return m_rows; }
65 int Cols()
const {
return m_cols; }
66 double NorthMin()
const {
return m_northMin; }
67 double EastMin()
const {
return m_eastMin; }
68 double Spacing()
const {
return m_spacing; }
70 bool HasFlow()
const {
return m_hasFlow; }
72 const std::vector<float>&
Cells()
const {
return m_cells; }
80 bool m_hasFlow =
false;
81 std::vector<float> m_cells;
static constexpr int kChannels
Channels kept per cell.
Definition WaterMap.h:35
Sample At(double north, double east) const
const std::vector< float > & Cells() const
The cells, rows * cols * kChannels, row 0 south.
Definition WaterMap.h:72
WaterMap(int rows, int cols, double northMin, double eastMin, double spacing, std::vector< float > cells)
static std::shared_ptr< const WaterMap > Load(const std::string &jsonPath)
bool HasFlow() const
True when some cell has a flow.
Definition WaterMap.h:70
Definition FlukeAnchor.h:124
The state at a point.
Definition WaterMap.h:39
double flowNorth
Surface flow [m/s].
Definition WaterMap.h:41
double shelter
0: fully sheltered, 1: open sea.
Definition WaterMap.h:40