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

Sample terrain with parabola-modeled gap in x-direction. More...

#include <height_map_examples.h>

Inheritance diagram for towr::Gap:
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
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

Detailed Description

Sample terrain with parabola-modeled gap in x-direction.

Definition at line 89 of file height_map_examples.h.


Member Function Documentation

double towr::Gap::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 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.


Member Data Documentation

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.

const double towr::Gap::c = -(h*(w - 2*xc)*(w + 2*xc))/(w*w) [private]

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.


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