Sample terrain with parabola-modeled gap 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 |
double | GetHeightDerivWrtXX (double x, double y) const override |
Private Attributes | |
const double | a = (4*h)/(w*w) |
const double | b = -(8*h*xc)/(w*w) |
const double | c = -(h*(w - 2*xc)*(w + 2*xc))/(w*w) |
const double | dx = w/2.0 |
const double | gap_end_x = gap_start_ + w |
const double | gap_start_ = 1.0 |
const double | h = 1.5 |
const double | slope_ = h/w |
const double | w = 0.5 |
const double | xc = gap_start_ + dx |
Sample terrain with parabola-modeled gap in x-direction.
Definition at line 89 of file height_map_examples.h.
double towr::Gap::GetHeight | ( | double | x, |
double | y | ||
) | const [override, virtual] |
x | The x position. |
y | The y position. |
Implements towr::HeightMap.
Definition at line 89 of file height_map_examples.cc.
double towr::Gap::GetHeightDerivWrtX | ( | double | x, |
double | y | ||
) | const [override, virtual] |
Reimplemented from towr::HeightMap.
Definition at line 101 of file height_map_examples.cc.
double towr::Gap::GetHeightDerivWrtXX | ( | double | x, |
double | y | ||
) | const [override, virtual] |
Reimplemented from towr::HeightMap.
Definition at line 112 of file height_map_examples.cc.
const double towr::Gap::a = (4*h)/(w*w) [private] |
Definition at line 109 of file height_map_examples.h.
const double towr::Gap::b = -(8*h*xc)/(w*w) [private] |
Definition at line 110 of file height_map_examples.h.
Definition at line 111 of file height_map_examples.h.
const double towr::Gap::dx = w/2.0 [private] |
Definition at line 101 of file height_map_examples.h.
const double towr::Gap::gap_end_x = gap_start_ + w [private] |
Definition at line 103 of file height_map_examples.h.
const double towr::Gap::gap_start_ = 1.0 [private] |
Definition at line 96 of file height_map_examples.h.
const double towr::Gap::h = 1.5 [private] |
Definition at line 98 of file height_map_examples.h.
const double towr::Gap::slope_ = h/w [private] |
Definition at line 100 of file height_map_examples.h.
const double towr::Gap::w = 0.5 [private] |
Definition at line 97 of file height_map_examples.h.
const double towr::Gap::xc = gap_start_ + dx [private] |
Definition at line 102 of file height_map_examples.h.