Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
trax::TrackLocation Struct Reference

A TrackLocation ist a location on a single track. More...

#include <C:/Trend/Development/Trax3/Code/trax/TrackLocation.h>

Public Member Functions

bool operator== (const TrackLocation &tl) const noexcept
bool operator!= (const TrackLocation &tl) const noexcept
bool Equals (const TrackLocation &loc, Length _epsilon) const noexcept
void Flip () noexcept
 Turns the orientation of this TrackLocation to the other side.
Construction
Parameters
paramParameter value
orientOrientation
 TrackLocation (Length param) noexcept
 TrackLocation (Length param, bool orient) noexcept
 TrackLocation (Length param, Orientation::Value orient) noexcept
 TrackLocation (Length param, Orientation orient) noexcept

Public Attributes

Length parameter
 Parameter along a track starting from Track::front.
Orientation orientation
 Orientation on the track. True means orientation in track direction.

Detailed Description

A TrackLocation ist a location on a single track.

The location on a track is specified by a single parameter giving the arc length along the track from its start and a second value determining the orientation.

Member Function Documentation

◆ Equals()

bool trax::TrackLocation::Equals ( const TrackLocation & loc,
Length _epsilon ) const
inlinenoexcept
Parameters
locTrackLocation to compare with.
_epsilonThreshold for parameter equality.
Returns
true if the two TrackLocation differ only by less than epsilon.

The documentation for this struct was generated from the following file: