![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <NBHeightMapper.h>
Public Member Functions | |
| void | addSelf (const QueryResult &queryResult) const |
| callback for RTree search | |
| bool | contains (const Position &pos) const |
| checks whether pos lies within triangle (only checks x,y) | |
| double | getZ (const Position &geo) const |
| returns the projection of the give geoCoordinate (WGS84) onto triangle plane | |
| Position | normalVector () const |
| returns the normal vector for this triangles plane | |
| Triangle (const PositionVector &corners) | |
| ~Triangle () | |
Data Fields | |
| PositionVector | myCorners |
| the corners of the triangle | |
Definition at line 87 of file NBHeightMapper.h.
| NBHeightMapper::Triangle::Triangle | ( | const PositionVector & | corners | ) |
Definition at line 373 of file NBHeightMapper.cpp.
References myCorners.
|
inline |
Definition at line 91 of file NBHeightMapper.h.
| void NBHeightMapper::Triangle::addSelf | ( | const QueryResult & | queryResult | ) | const |
callback for RTree search
Definition at line 381 of file NBHeightMapper.cpp.
References NBHeightMapper::QueryResult::triangles.
| bool NBHeightMapper::Triangle::contains | ( | const Position & | pos | ) | const |
checks whether pos lies within triangle (only checks x,y)
Definition at line 387 of file NBHeightMapper.cpp.
Referenced by NBHeightMapper::getZ().
| double NBHeightMapper::Triangle::getZ | ( | const Position & | geo | ) | const |
returns the projection of the give geoCoordinate (WGS84) onto triangle plane
Definition at line 393 of file NBHeightMapper.cpp.
References Position::dotProduct(), and Position::sub().
Referenced by NBHeightMapper::getZ().
| Position NBHeightMapper::Triangle::normalVector | ( | ) | const |
returns the normal vector for this triangles plane
Definition at line 404 of file NBHeightMapper.cpp.
References Position::crossProduct().
| PositionVector NBHeightMapper::Triangle::myCorners |
the corners of the triangle
Definition at line 106 of file NBHeightMapper.h.
Referenced by Triangle().