INET Framework for OMNeT++/OMNEST
inet::physicalenvironment::IGround Class Referenceabstract

#include <IGround.h>

Inheritance diagram for inet::physicalenvironment::IGround:
inet::physicalenvironment::FlatGround

Public Member Functions

virtual Coord computeGroundProjection (const Coord &position) const =0
 Returns a point on the ground "underneath" (or above) the given position. More...
 
virtual Coord computeGroundNormal (const Coord &position) const =0
 Returns a unit length vector that is locally perpendicular to the ground at "position", pointing up. More...
 

Member Function Documentation

◆ computeGroundNormal()

virtual Coord inet::physicalenvironment::IGround::computeGroundNormal ( const Coord position) const
pure virtual

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.

Implemented in inet::physicalenvironment::FlatGround.

◆ computeGroundProjection()

virtual Coord inet::physicalenvironment::IGround::computeGroundProjection ( const Coord position) const
pure virtual

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).

Implemented in inet::physicalenvironment::FlatGround.


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