NMPB08 Shared Libraries
Functions
PathStructures.cpp File Reference

Used functions in the library. More...

#include "PathStructures.h"

Go to the source code of this file.

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

Used functions in the library.

Author:
CSTB
Version:
1.0

Definition in file PathStructures.cpp.


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