diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-04-17 03:10:27 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-04-17 03:10:27 -0400 |
commit | 9b436e67cdc5ee896c3c2fec90499e400a9e524e (patch) | |
tree | 45366352db1024722bbe7db07792c4148683afa9 /src/ocean | |
parent | 0b0629450e2553b2f890094290528b565d607e38 (diff) |
Do realtime refraction kinda.
Diffstat (limited to 'src/ocean')
-rw-r--r-- | src/ocean/ocean.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ocean/ocean.h b/src/ocean/ocean.h index 2387d2a..0d2d2c0 100644 --- a/src/ocean/ocean.h +++ b/src/ocean/ocean.h @@ -17,7 +17,12 @@ public: void updateVertexAmplitudes(double t); std::vector<Eigen::Vector3f> get_vertices(); std::vector<Eigen::Vector3i> get_faces(); - + int getLength() { + return this->length; + } + int getWidth() { + return this->width; + } @@ -27,7 +32,7 @@ private: const int width = 81; // width of grid const int N = length * width; // total number of grid points - const double A = 10.0; // numeric constant for the Phillips spectrum + const double A = 50.0; // numeric constant for the Phillips spectrum const double V = .25; // wind speed const std::pair<double, double> omega_wind = std::make_pair(1.0, 0.0); // wind direction |