Sample terrain with a step in height in x-direction. More...
#include <height_map_examples.h>
Public Member Functions | |
double | GetHeight (double x, double y) const override |
double | GetHeightDerivWrtX (double x, double y) const override |
Private Attributes | |
double | block_start = 0.7 |
double | eps_ = 0.03 |
double | height_ = 0.5 |
double | length_ = 3.5 |
const double | slope_ = height_/eps_ |
Sample terrain with a step in height in x-direction.
Definition at line 57 of file height_map_examples.h.
double towr::Block::GetHeight | ( | double | x, |
double | y | ||
) | const [override, virtual] |
x | The x position. |
y | The y position. |
Implements towr::HeightMap.
Definition at line 41 of file height_map_examples.cc.
double towr::Block::GetHeightDerivWrtX | ( | double | x, |
double | y | ||
) | const [override, virtual] |
Reimplemented from towr::HeightMap.
Definition at line 56 of file height_map_examples.cc.
double towr::Block::block_start = 0.7 [private] |
Definition at line 63 of file height_map_examples.h.
double towr::Block::eps_ = 0.03 [private] |
Definition at line 67 of file height_map_examples.h.
double towr::Block::height_ = 0.5 [private] |
Definition at line 65 of file height_map_examples.h.
double towr::Block::length_ = 3.5 [private] |
Definition at line 64 of file height_map_examples.h.
const double towr::Block::slope_ = height_/eps_ [private] |
Definition at line 68 of file height_map_examples.h.