Public Member Functions | Private Attributes
towr::Slope Class Reference

Sample terrain with an increasing and then decreasing slope in x-direction. More...

#include <height_map_examples.h>

Inheritance diagram for towr::Slope:
Inheritance graph
[legend]

List of all members.

Public Member Functions

double GetHeight (double x, double y) const override
double GetHeightDerivWrtX (double x, double y) const override

Private Attributes

const double down_length_ = 1.0
const double height_center = 0.7
const double slope_ = height_center/up_length_
const double slope_start_ = 1.0
const double up_length_ = 1.0
const double x_down_start_ = slope_start_+up_length_
const double x_flat_start_ = x_down_start_ + down_length_

Detailed Description

Sample terrain with an increasing and then decreasing slope in x-direction.

Definition at line 117 of file height_map_examples.h.


Member Function Documentation

double towr::Slope::GetHeight ( double  x,
double  y 
) const [override, virtual]
Returns:
The height of the terrain [m] at a specific 2D position.
Parameters:
xThe x position.
yThe y position.

Implements towr::HeightMap.

Definition at line 125 of file height_map_examples.cc.

double towr::Slope::GetHeightDerivWrtX ( double  x,
double  y 
) const [override, virtual]

Reimplemented from towr::HeightMap.

Definition at line 144 of file height_map_examples.cc.


Member Data Documentation

const double towr::Slope::down_length_ = 1.0 [private]

Definition at line 125 of file height_map_examples.h.

const double towr::Slope::height_center = 0.7 [private]

Definition at line 126 of file height_map_examples.h.

const double towr::Slope::slope_ = height_center/up_length_ [private]

Definition at line 130 of file height_map_examples.h.

const double towr::Slope::slope_start_ = 1.0 [private]

Definition at line 123 of file height_map_examples.h.

const double towr::Slope::up_length_ = 1.0 [private]

Definition at line 124 of file height_map_examples.h.

Definition at line 128 of file height_map_examples.h.

Definition at line 129 of file height_map_examples.h.


The documentation for this class was generated from the following files:


towr
Author(s): Alexander W. Winkler
autogenerated on Mon Apr 15 2019 02:42:32