pub struct RoadPositionQuery {
pub road_position: RoadPosition,
pub nearest_position: InertialPosition,
pub distance: f64,
}Expand description
Represents the result of a RoadPosition query.
This struct contains the RoadPosition, the nearest InertialPosition to that RoadPosition,
and the distance between the input InertialPosition and the nearest InertialPosition.
This struct is typically used as return type for the methods: RoadGeometry::to_road_position and RoadGeometry::find_road_positions.
Fields§
§road_position: RoadPositionThe candidate RoadPosition returned by the query.
nearest_position: InertialPositionThe nearest InertialPosition to the candidate RoadPosition. This is the position in the inertial frame that is closest to the candidate RoadPosition
distance: f64The distance between the input InertialPosition and the nearest InertialPosition.
Implementations§
Source§impl RoadPositionQuery
impl RoadPositionQuery
Sourcepub fn new(
road_position: RoadPosition,
nearest_position: InertialPosition,
distance: f64,
) -> RoadPositionQuery
pub fn new( road_position: RoadPosition, nearest_position: InertialPosition, distance: f64, ) -> RoadPositionQuery
Create a new RoadPositionQuery with the given road_position, nearest_position, and distance.
Auto Trait Implementations§
impl Freeze for RoadPositionQuery
impl RefUnwindSafe for RoadPositionQuery
impl !Send for RoadPositionQuery
impl !Sync for RoadPositionQuery
impl Unpin for RoadPositionQuery
impl UnwindSafe for RoadPositionQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more