Public Member Functions | Private Attributes | List of all members
towr::FlatGround Class Reference

Sample terrain of even height. More...

#include <height_map_examples.h>

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

Public Member Functions

 FlatGround (double height=0.0)
 
double GetHeight (double x, double y) const override
 
- Public Member Functions inherited from towr::HeightMap
double GetDerivativeOfHeightWrt (Dim2D dim, double x, double y) const
 How the height value changes at a 2D position in direction dim. More...
 
Vector3d GetDerivativeOfNormalizedBasisWrt (Direction direction, Dim2D dim, double x, double y) const
 How the terrain normal/tangent vectors change when moving in x or y. More...
 
double GetFrictionCoeff () const
 
Vector3d GetNormalizedBasis (Direction direction, double x, double y) const
 Returns either the vector normal or tangent to the terrain patch. More...
 
 HeightMap ()=default
 
virtual ~HeightMap ()=default
 

Private Attributes

double height_
 

Additional Inherited Members

- Public Types inherited from towr::HeightMap
enum  Direction { Normal, Tangent1, Tangent2 }
 
using Ptr = std::shared_ptr< HeightMap >
 
enum  TerrainID {
  FlatID, BlockID, StairsID, GapID,
  SlopeID, ChimneyID, ChimneyLRID, TERRAIN_COUNT
}
 Terrains IDs corresponding for factory method. More...
 
using Vector3d = Eigen::Vector3d
 
- Static Public Member Functions inherited from towr::HeightMap
static HeightMap::Ptr MakeTerrain (TerrainID type)
 
- Protected Attributes inherited from towr::HeightMap
double friction_coeff_ = 0.5
 

Detailed Description

Sample terrain of even height.

Definition at line 45 of file height_map_examples.h.

Constructor & Destructor Documentation

◆ FlatGround()

towr::FlatGround::FlatGround ( double  height = 0.0)

Definition at line 35 of file height_map_examples.cc.

Member Function Documentation

◆ GetHeight()

double towr::FlatGround::GetHeight ( double  x,
double  y 
) const
inlineoverridevirtual
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 48 of file height_map_examples.h.

Member Data Documentation

◆ height_

double towr::FlatGround::height_
private

Definition at line 48 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 Feb 28 2022 23:54:22