SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
NBHelpers.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Some mathematical helper methods
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
#ifndef NBHelpers_h
23
#define NBHelpers_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <string>
36
37
38
// ===========================================================================
39
// class declarations
40
// ===========================================================================
41
class
NBNode
;
42
class
Position
;
43
44
45
// ===========================================================================
46
// class definitions
47
// ===========================================================================
52
class
NBHelpers
{
53
public
:
56
static
SUMOReal
angle
(
SUMOReal
x1,
SUMOReal
y1,
SUMOReal
x2,
SUMOReal
y2);
57
59
static
SUMOReal
relAngle
(
SUMOReal
angle1,
SUMOReal
angle2);
60
63
static
SUMOReal
normRelAngle
(
SUMOReal
angle1,
SUMOReal
angle2);
64
66
static
std::string
normalIDRepresentation
(
const
std::string&
id
);
67
69
static
SUMOReal
distance
(
NBNode
* node1,
NBNode
* node2);
70
71
};
72
73
74
#endif
75
76
/****************************************************************************/
77
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
netbuild
NBHelpers.h
Generated on Mon Mar 24 2014 09:53:11 for SUMO - Simulation of Urban MObility by
1.8.1.2