|
INET Framework for OMNeT++/OMNEST
|
#include <IGround.h>
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... | |
|
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.
|
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.