Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBHeightMapper::Triangle Class Reference

#include <NBHeightMapper.h>

Collaboration diagram for NBHeightMapper::Triangle:
[legend]

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

Detailed Description

Definition at line 87 of file NBHeightMapper.h.

Constructor & Destructor Documentation

◆ Triangle()

NBHeightMapper::Triangle::Triangle ( const PositionVector & corners)

Definition at line 377 of file NBHeightMapper.cpp.

References myCorners.

◆ ~Triangle()

NBHeightMapper::Triangle::~Triangle ( )
inline

Definition at line 91 of file NBHeightMapper.h.

Member Function Documentation

◆ addSelf()

void NBHeightMapper::Triangle::addSelf ( const QueryResult & queryResult) const

callback for RTree search

Definition at line 385 of file NBHeightMapper.cpp.

References NBHeightMapper::QueryResult::triangles.

◆ contains()

bool NBHeightMapper::Triangle::contains ( const Position & pos) const

checks whether pos lies within triangle (only checks x,y)

Definition at line 391 of file NBHeightMapper.cpp.

References myCorners.

Referenced by NBHeightMapper::getZ().

Here is the caller graph for this function:

◆ getZ()

double NBHeightMapper::Triangle::getZ ( const Position & geo) const

returns the projection of the give geoCoordinate (WGS84) onto triangle plane

Definition at line 397 of file NBHeightMapper.cpp.

References Position::dotProduct(), myCorners, normalVector(), and Position::sub().

Referenced by NBHeightMapper::getZ().

Here is the caller graph for this function:

◆ normalVector()

Position NBHeightMapper::Triangle::normalVector ( ) const

returns the normal vector for this triangles plane

Definition at line 408 of file NBHeightMapper.cpp.

References Position::crossProduct(), and myCorners.

Referenced by getZ().

Here is the caller graph for this function:

Field Documentation

◆ myCorners

PositionVector NBHeightMapper::Triangle::myCorners

the corners of the triangle

Definition at line 106 of file NBHeightMapper.h.

Referenced by contains(), getZ(), normalVector(), and Triangle().


The documentation for this class was generated from the following files: