FlatGround

Package: inet.environment.ground

compound module FlatGround

Models a flat ground surface with a configurable elevation. Provides methods to compute the ground projection of a 3D position by setting its z-coordinate to the elevation value, and to compute the ground normal which is always pointing upward (0,0,1) for a flat surface.

FlatGround

Inheritance diagram

Extends

Name

Type

Description

Module

compound module

Base module for all INET compound modules.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

elevation

double

0m

Properties

Name

Value

Description

class

FlatGround

Source code

//
// Models a flat ground surface with a configurable elevation. Provides methods
// to compute the ground projection of a 3D position by setting its z-coordinate
// to the elevation value, and to compute the ground normal which is always
// pointing upward (0,0,1) for a flat surface.
//
module FlatGround extends Module like IGround
{
    parameters:
        double elevation @unit(m) = default(0m);
        @class(FlatGround);
}

File: src/inet/environment/ground/FlatGround.ned