Free Electron
lab
terrain
StratumRamp.h
Go to the documentation of this file.
1
/* Copyright (C) 2003-2021 Free Electron Organization
2
Any use of this software requires a license. If a valid license
3
was not distributed with this file, visit freeelectron.org. */
4
5
/** @file */
6
7
#ifndef __terrain_StratumRamp_h__
8
#define __terrain_StratumRamp_h__
9
namespace
fe
10
{
11
namespace
ext
12
{
13
14
/**************************************************************************/
/**
15
@brief Elevation of a slant
16
17
@ingroup terrain
18
19
y=x
20
*/
/***************************************************************************/
21
class
FE_DL_EXPORT
StratumRamp
:
public
StratumPlane
22
{
23
public
:
24
StratumRamp
(
void
) {}
25
virtual
~
StratumRamp
(
void
) {}
26
27
//* As StratumI
28
virtual
Real height(Real x,Real y)
const
{
return
offset()+x; }
29
virtual
SpatialVector
normal(Real x,Real y)
const
30
{
return
SpatialVector
(-0.707f,0.707f,0.0f); }
31
};
32
33
}
/* namespace ext */
34
}
/* namespace fe */
35
36
#endif
/* __terrain_StratumRamp_h__ */
fe::ext::StratumPlane
Flat Elevation.
Definition:
StratumPlane.h:19
fe
kernel
Definition:
namespace.dox:3
fe::Vector< 3, Real >
fe::ext::StratumRamp
Elevation of a slant.
Definition:
StratumRamp.h:21
Generated by
1.8.13