#include <FlatGround.h>
◆ computeGroundNormal()
| Coord inet::physicalenvironment::FlatGround::computeGroundNormal |
( |
const Coord & |
position | ) |
const |
|
overridevirtual |
Returns a unit length vector that is locally perpendicular to the ground at "position", pointing up.
If such vector cannot be determined, all components of the result are NaN. The point given by "position" does not have to be on the ground. If necessary, it is first projected to the ground internally by the implementation.
Implements inet::physicalenvironment::IGround.
29 return Coord(0, 0, 1);
◆ computeGroundProjection()
| Coord inet::physicalenvironment::FlatGround::computeGroundProjection |
( |
const Coord & |
position | ) |
const |
|
overridevirtual |
Returns a point on the ground "underneath" (or above) the given position.
The projection might alter only the Z coordinate in simple cases, or it might alter all coordinates in case of a large scene on a globe model, or a scene placed at an angle above the ground (using a IGeographicCoordinateSystem).
Implements inet::physicalenvironment::IGround.
24 return Coord(position.x, position.y,
elevation);
◆ initialize()
| void inet::physicalenvironment::FlatGround::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
◆ elevation
| double inet::physicalenvironment::FlatGround::elevation = NaN |
|
protected |
The documentation for this class was generated from the following files: