Sample terrain with two tilted vertical walls to cross a gap. More...
#include <height_map_examples.h>
Public Member Functions | |
double | GetHeight (double x, double y) const override |
double | GetHeightDerivWrtY (double x, double y) const override |
Private Attributes | |
const double | length_ = 1.0 |
const double | slope_ = 2 |
const double | x_end1_ = x_start_+length_ |
const double | x_end2_ = x_start_+2*length_ |
const double | x_start_ = 0.5 |
const double | y_start_ = 0.5 |
Sample terrain with two tilted vertical walls to cross a gap.
Definition at line 153 of file height_map_examples.h.
double towr::ChimneyLR::GetHeight | ( | double | x, |
double | y | ||
) | const [override, virtual] |
x | The x position. |
y | The y position. |
Implements towr::HeightMap.
Definition at line 186 of file height_map_examples.cc.
double towr::ChimneyLR::GetHeightDerivWrtY | ( | double | x, |
double | y | ||
) | const [override, virtual] |
Reimplemented from towr::HeightMap.
Definition at line 200 of file height_map_examples.cc.
const double towr::ChimneyLR::length_ = 1.0 [private] |
Definition at line 160 of file height_map_examples.h.
const double towr::ChimneyLR::slope_ = 2 [private] |
Definition at line 162 of file height_map_examples.h.
const double towr::ChimneyLR::x_end1_ = x_start_+length_ [private] |
Definition at line 164 of file height_map_examples.h.
const double towr::ChimneyLR::x_end2_ = x_start_+2*length_ [private] |
Definition at line 165 of file height_map_examples.h.
const double towr::ChimneyLR::x_start_ = 0.5 [private] |
Definition at line 159 of file height_map_examples.h.
const double towr::ChimneyLR::y_start_ = 0.5 [private] |
Definition at line 161 of file height_map_examples.h.