NMPB08 Shared Libraries
Classes | Defines | Functions
PathStructures.h File Reference

Definition of main constants and structures used in the library. More...

#include "pathdefNMPB.h"
#include <vector>
#include "math.h"
#include "stdio.h"

Go to the source code of this file.

Classes

struct  ProfilePointNMPB
 Profile point Structure. More...
struct  PropagationPath
 Structure for the propagation path. More...

Defines

#define ProfilePointNMPB   _Local_PROPAN8_ProfilePointNMPB_
#define PropagationPath   _Local_PROPAN8_PropagationPath_
#define NULE   0
#define cSound   ((double) 340)
 sound speed in the air
#define PI   ((double) 3.14159265358979323)
 used value for Pi

Functions

double distance2D (Position2D const *position1, Position2D const *position2)
 Computes the distance between 2 2D points.
double distance3D (Position3D const *position1, Position3D const *position2)
 Computes the distance between 2 3D points.
double GroundDistance (Position3D const *position1, Position3D const *position2)
 Computes the ground distance between 2 positions (ie distance with x and y, but not z)
void FillPlanePosition (ProfilePointNMPB *terrain, ProfilePointNMPB const *source, double cumDistance)
 Fills the TerrainItem Position2D.

Detailed Description

Definition of main constants and structures used in the library.

Author:
CSTB
Version:
1.0

Definition in file PathStructures.h.


Define Documentation

#define cSound   ((double) 340)

sound speed in the air

Definition at line 31 of file PathStructures.h.

#define NULE   0

Definition at line 26 of file PathStructures.h.

#define PI   ((double) 3.14159265358979323)

used value for Pi

Definition at line 35 of file PathStructures.h.

#define ProfilePointNMPB   _Local_PROPAN8_ProfilePointNMPB_

Definition at line 22 of file PathStructures.h.

#define PropagationPath   _Local_PROPAN8_PropagationPath_

Definition at line 23 of file PathStructures.h.


Function Documentation

double distance2D ( Position2D const *  position1,
Position2D const *  position2 
)

Computes the distance between 2 2D points.

Parameters:
position1The first point coordinates
position2The second point coordinates
Returns:
the distance between the 2 positions

Definition at line 20 of file PathStructures.cpp.

double distance3D ( Position3D const *  position1,
Position3D const *  position2 
)

Computes the distance between 2 3D points.

Parameters:
position1The first point coordinates
position2The second point coordinates
Returns:
the distance between the 2 positions

Definition at line 34 of file PathStructures.cpp.

void FillPlanePosition ( ProfilePointNMPB terrain,
ProfilePointNMPB const *  source,
double  cumDistance 
)

Fills the TerrainItem Position2D.

Parameters:
terrainThe terrain item
sourceThe source
cumDistanceThe cumulated ground distance

Definition at line 62 of file PathStructures.cpp.

double GroundDistance ( Position3D const *  position1,
Position3D const *  position2 
)

Computes the ground distance between 2 positions (ie distance with x and y, but not z)

Parameters:
position1The first point coordinates
position2The second point coordinates
Returns:
the ground distance

Definition at line 48 of file PathStructures.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines