![]() |
SUMO - Simulation of Urban MObility
|
#include <config.h>
#include <cmath>
#include "Position.h"
#include "PositionVector.h"
#include <utils/common/UtilExceptions.h>
Go to the source code of this file.
Data Structures | |
class | GeomHelper |
Some static methods performing geometrical operations. More... | |
Macros | |
#define | DEG2RAD(x) static_cast<double>((x) * M_PI / 180.) |
#define | M_PI 3.1415926535897932384626433832795 |
#define | RAD2DEG(x) static_cast<double>((x) * 180. / M_PI) |
#define DEG2RAD | ( | x | ) | static_cast<double>((x) * M_PI / 180.) |
Definition at line 38 of file GeomHelper.h.
Referenced by GUISUMOAbstractView::applyGLTransform(), NBNode::bezierControlPoints(), NBEdge::buildInnerEdges(), GeoConvHelper::cartesian2geo(), NBEdge::checkGeometry(), HelpersEnergy::compute(), NBNetBuilder::compute(), MSVehicle::computeAngle(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNode::computeSmoothShape(), NBEdge::cutAtIntersection(), NIVissimEdge::dict_checkEdges2Join(), GLHelper::drawFilledCircle(), GLHelper::drawOutlineCircle(), NGFrame::fillOptions(), GeomHelper::fromNaviDegree(), NBNodeShapeComputer::getDefaultRadius(), PositionVector::getOrthogonal(), NBNodeShapeComputer::getSmoothCorner(), NBNode::hasCustomShape(), NIVissimConnectionCluster::isWeakDistrictConnRealisation(), NBNodeShapeComputer::joinSameDirectionEdges(), MSCFModel_Rail::maxNextSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel_Rail::minNextSpeed(), GUIDanielPerspectiveChanger::onMouseMove(), GUISUMOAbstractView::screenPos2NetPos(), GNEEdge::smoothShape(), NWWriter_OpenDrive::writeNetwork(), and GeoConvHelper::x2cartesian_const().
#define M_PI 3.1415926535897932384626433832795 |
Definition at line 35 of file GeomHelper.h.
#define RAD2DEG | ( | x | ) | static_cast<double>((x) * 180. / M_PI) |
Definition at line 39 of file GeomHelper.h.
Referenced by NBNode::bezierControlPoints(), NBEdge::buildInnerEdges(), NBEdge::checkGeometry(), MSVehicle::computeAngle(), NBNodeShapeComputer::computeNodeShapeDefault(), GUIPerson::drawAction_drawAsImage(), GUIContainer::drawAction_drawAsPoly(), GUIPerson::drawAction_drawAsTriangle(), GUIVehicle::drawAction_drawRailCarriages(), GUILane::drawArrows(), GLHelper::drawBoxLines(), GNEBusStop::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GUIBusStop::drawGL(), GUILane::drawLinkRule(), GUILane::drawLinkRules(), GUIBaseVehicle::drawOnPos(), GLHelper::drawTextAtEnd(), NBNodeShapeComputer::getDefaultRadius(), NBNodeShapeComputer::getSmoothCorner(), GUILane::GUILane(), MSLane::handleCollisionBetween(), GeomHelper::legacyDegree(), TrajectoriesHandler::myStartElement(), GeomHelper::naviDegree(), PositionVector::slopeDegreeAtOffset(), MSLaneChangerSublane::startChangeSublane(), and NWWriter_OpenDrive::writeGeomSmooth().