Struct map_model::Position [−][src]
Represents a specific point some distance along a lane.
Fields
lane: LaneID
dist_along: Distance
Implementations
impl Position
[src]
impl Position
[src]pub fn new(lane: LaneID, dist_along: Distance) -> Position
[src]
pub fn start(lane: LaneID) -> Position
[src]
pub fn end(lane: LaneID, map: &Map) -> Position
[src]
pub fn lane(&self) -> LaneID
[src]
pub fn dist_along(&self) -> Distance
[src]
pub fn pt(&self, map: &Map) -> Pt2D
[src]
pub fn pt_and_angle(&self, map: &Map) -> (Pt2D, Angle)
[src]
pub fn equiv_pos(&self, lane: LaneID, map: &Map) -> Position
[src]
Given a position along a lane, find the equivalent position along another lane on the same road.
pub fn equiv_pos_for_long_object(
&self,
other_lane: LaneID,
object_length: Distance,
map: &Map
) -> Position
[src]
&self,
other_lane: LaneID,
object_length: Distance,
map: &Map
) -> Position
pub fn min_dist(self, dist_along: Distance, map: &Map) -> Option<Position>
[src]
pub fn buffer_dist(self, buffer: Distance, map: &Map) -> Option<Position>
[src]
Trait Implementations
impl<'de> Deserialize<'de> for Position
[src]
impl<'de> Deserialize<'de> for Position
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialOrd<Position> for Position
[src]
impl PartialOrd<Position> for Position
[src]impl Copy for Position
[src]
impl Eq for Position
[src]
impl StructuralEq for Position
[src]
impl StructuralPartialEq for Position
[src]
Auto Trait Implementations
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,