Sample terrain with a two-steps in height in x-direction. More...
#include <height_map_examples.h>
Public Member Functions | |
double | GetHeight (double x, double y) const override |
Private Attributes | |
double | first_step_start_ = 1.0 |
double | first_step_width_ = 0.4 |
double | height_first_step = 0.2 |
double | height_second_step = 0.4 |
double | width_top = 1.0 |
Sample terrain with a two-steps in height in x-direction.
Definition at line 74 of file height_map_examples.h.
double towr::Stairs::GetHeight | ( | double | x, |
double | y | ||
) | const [override, virtual] |
x | The x position. |
y | The y position. |
Implements towr::HeightMap.
Definition at line 70 of file height_map_examples.cc.
double towr::Stairs::first_step_start_ = 1.0 [private] |
Definition at line 79 of file height_map_examples.h.
double towr::Stairs::first_step_width_ = 0.4 [private] |
Definition at line 80 of file height_map_examples.h.
double towr::Stairs::height_first_step = 0.2 [private] |
Definition at line 81 of file height_map_examples.h.
double towr::Stairs::height_second_step = 0.4 [private] |
Definition at line 82 of file height_map_examples.h.
double towr::Stairs::width_top = 1.0 [private] |
Definition at line 83 of file height_map_examples.h.